Fix: some shadowing
This commit is contained in:
parent
38d0a2835c
commit
0d9e1368b4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user