From 80ed34f3e731b37da5028fd3e67e1c292469532a Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Sun, 20 Aug 2017 14:10:58 -0500 Subject: [PATCH] Use correct multi-line statement formatting --- edit/lint.js | 5 ++++- js/dom.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/edit/lint.js b/edit/lint.js index 8fc56ac1..262b67ca 100644 --- a/edit/lint.js +++ b/edit/lint.js @@ -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 diff --git a/js/dom.js b/js/dom.js index 884b7036..c56a2b4b 100644 --- a/js/dom.js +++ b/js/dom.js @@ -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(); + }; }); } }