Commit c78308dd authored by Robert Knight's avatar Robert Knight

Fix ESLint warnings that appeared after running auto-formatting

`// eslint-disable-line` magic comments got moved down a line so they no
longer referred to the intended code. Switch to using
`// eslint-disable-next-line` instead.
parent 7d764a8f
...@@ -203,6 +203,7 @@ class Discovery { ...@@ -203,6 +203,7 @@ class Discovery {
} }
} else { } else {
// Handle message as a client frame. // Handle message as a client frame.
// eslint-disable-next-line no-lonely-if
if (messageType === 'offer') { if (messageType === 'offer') {
// eslint-disable-line no-lonely-if // eslint-disable-line no-lonely-if
if (!this.requestInProgress) { if (!this.requestInProgress) {
......
...@@ -29,8 +29,8 @@ describe('sidebar.components.annotation-header', function() { ...@@ -29,8 +29,8 @@ describe('sidebar.components.annotation-header', function() {
beforeEach('Import and register the annotationHeader component', function() { beforeEach('Import and register the annotationHeader component', function() {
const annotationHeader = proxyquire('../annotation-header', { const annotationHeader = proxyquire('../annotation-header', {
'../annotation-metadata': { '../annotation-metadata': {
// eslint-disable-next-line no-unused-vars
domainAndTitle: function(ann) { domainAndTitle: function(ann) {
// eslint-disable-line no-unused-vars
return fakeDocumentMeta; return fakeDocumentMeta;
}, },
}, },
......
...@@ -44,8 +44,8 @@ function extractMath(content) { ...@@ -44,8 +44,8 @@ function extractMath(content) {
let pos = 0; let pos = 0;
let replacedContent = content; let replacedContent = content;
// eslint-disable-next-line no-constant-condition
while (true) { while (true) {
// eslint-disable-line no-constant-condition
const blockMathStart = replacedContent.indexOf('$$', pos); const blockMathStart = replacedContent.indexOf('$$', pos);
const inlineMathStart = replacedContent.indexOf('\\(', pos); const inlineMathStart = replacedContent.indexOf('\\(', pos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment