提交 d97b01e3 编写于 作者: J Joao Moreno

🐛 improve allow async node warning

上级 015f9507
......@@ -47,7 +47,7 @@ var AsyncRuleWalker = (function (_super) {
return;
}
var message = "You are not allowed to use async function in this layer. Allowed layers are: [" + this.allowed + "]";
this.addFailure(this.createFailure(node.getStart(), node.getWidth(), message));
this.addFailureAtNode(node, message);
};
return AsyncRuleWalker;
}(Lint.RuleWalker));
......@@ -42,6 +42,6 @@ class AsyncRuleWalker extends Lint.RuleWalker {
}
const message = `You are not allowed to use async function in this layer. Allowed layers are: [${this.allowed}]`;
this.addFailure(this.createFailure(node.getStart(), node.getWidth(), message));
this.addFailureAtNode(node, message);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册