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:
Paul Berry 2021-09-17 16:45:51 +00:00 committed by commit-bot@chromium.org
parent a9873f195f
commit 81dda21cd4

View file

@ -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;