diff --git a/edit/linter.js b/edit/linter.js index 8e863682..4e7d5ea1 100644 --- a/edit/linter.js +++ b/edit/linter.js @@ -43,8 +43,8 @@ var linter = (() => { } } - function register(getAnnotations) { - linters.push(getAnnotations); + function register(linterFn) { + linters.push(linterFn); } function run() { @@ -55,7 +55,7 @@ var linter = (() => { function getAnnotations(...args) { const result = []; - return Promise.all(linters.map(getAnnotations => getAnnotations(...args))) + return Promise.all(linters.map(fn => fn(...args))) .then(results => { for (const annotations of results) { if (annotations) {