Use correct multi-line statement formatting
This commit is contained in:
parent
91825d11fd
commit
80ed34f3e7
|
@ -60,7 +60,10 @@ function updateLintReport(cm, delay) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (delay > 0) {
|
if (delay > 0) {
|
||||||
setTimeout(cm => { cm.performLint(); update(cm); }, delay, cm);
|
setTimeout(cm => {
|
||||||
|
cm.performLint();
|
||||||
|
update(cm);
|
||||||
|
}, delay, cm);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-var
|
// eslint-disable-next-line no-var
|
||||||
|
|
|
@ -126,7 +126,10 @@ function injectScript(properties) {
|
||||||
Object.assign(script, properties);
|
Object.assign(script, properties);
|
||||||
if (!properties.onload) {
|
if (!properties.onload) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
script.onload = () => { script.onload = null; resolve(); };
|
script.onload = () => {
|
||||||
|
script.onload = null;
|
||||||
|
resolve();
|
||||||
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user