Use correct multi-line statement formatting

This commit is contained in:
Rob Garrison 2017-08-20 14:10:58 -05:00
parent 91825d11fd
commit 80ed34f3e7
2 changed files with 8 additions and 2 deletions

View File

@ -60,7 +60,10 @@ function updateLintReport(cm, delay) {
return;
}
if (delay > 0) {
setTimeout(cm => { cm.performLint(); update(cm); }, delay, cm);
setTimeout(cm => {
cm.performLint();
update(cm);
}, delay, cm);
return;
}
// eslint-disable-next-line no-var

View File

@ -126,7 +126,10 @@ function injectScript(properties) {
Object.assign(script, properties);
if (!properties.onload) {
return new Promise(resolve => {
script.onload = () => { script.onload = null; resolve(); };
script.onload = () => {
script.onload = null;
resolve();
};
});
}
}