Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro
Using next-line is less error prone for refactorings than wrapping methods with enable/disable blocks. Differential Revision: https://phabricator.services.mozilla.com/D51782
This commit is contained in:
@@ -256,7 +256,7 @@ function isContentScheme(location, i = 0) {
|
||||
}
|
||||
}
|
||||
|
||||
/* eslint-disable complexity */
|
||||
// eslint-disable-next-line complexity
|
||||
function isChromeScheme(location, i = 0) {
|
||||
const firstChar = location.charCodeAt(i);
|
||||
|
||||
@@ -308,7 +308,6 @@ function isChromeScheme(location, i = 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/* eslint-enable complexity */
|
||||
|
||||
function isWASM(location, i = 0) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user