Fix: reindent promise

This commit is contained in:
eight 2017-11-09 07:26:11 +08:00
parent eef17cc4f8
commit 48e565079c

View File

@ -159,8 +159,10 @@ function updateLinter({immediately, linter = linterConfig.getDefault()} = {}) {
} }
const GUTTERS_CLASS = 'CodeMirror-lint-markers'; const GUTTERS_CLASS = 'CodeMirror-lint-markers';
Promise.all([linterConfig.init(), loadLinterAssets(linter)]) Promise.all([
.then(updateEditors); linterConfig.init(),
loadLinterAssets(linter)
]).then(updateEditors);
$('#linter-settings').style.display = !linter ? 'none' : 'inline-block'; $('#linter-settings').style.display = !linter ? 'none' : 'inline-block';
$('#lint').style.display = 'none'; $('#lint').style.display = 'none';