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:
@@ -562,7 +562,7 @@ function mainThreadFetch(
|
||||
).loadGroup;
|
||||
}
|
||||
|
||||
/* eslint-disable complexity */
|
||||
// eslint-disable-next-line complexity
|
||||
const onResponse = (stream, status, request) => {
|
||||
if (!components.isSuccessCode(status)) {
|
||||
reject(new Error(`Failed to fetch ${url}. Code ${status}.`));
|
||||
|
||||
Reference in New Issue
Block a user