mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:07:49 +00:00
Don't supply arguments when reporting IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION.
This hint message doesn't take any arguments. Change-Id: Idc2546901b3dcbbbb45356628028f1ac08d71c7b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213730 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
parent
a9873f195f
commit
81dda21cd4
|
@ -1227,9 +1227,7 @@ class BestPracticesVerifier extends RecursiveAstVisitor<void> {
|
|||
prefix.name, FunctionElement.LOAD_LIBRARY_NAME);
|
||||
if (loadLibraryElement != null) {
|
||||
_errorReporter.reportErrorForNode(
|
||||
HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION,
|
||||
node,
|
||||
[importedLibrary.name]);
|
||||
HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, node);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue