commit | 81dda21cd4d20b24a15ebda06b36c104a085579b | [log] [tgz] |
---|---|---|
author | Paul Berry <paulberry@google.com> | Fri Sep 17 16:45:51 2021 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Fri Sep 17 16:45:51 2021 +0000 |
tree | 764226ae84023f34c32efb21acb68969e7a427f3 | |
parent | a9873f195fe93abf356a4b566abbef6ee5dfd544 [diff] |
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>
diff --git a/pkg/analyzer/lib/src/error/best_practices_verifier.dart b/pkg/analyzer/lib/src/error/best_practices_verifier.dart index eac31f6..53d62f5 100644 --- a/pkg/analyzer/lib/src/error/best_practices_verifier.dart +++ b/pkg/analyzer/lib/src/error/best_practices_verifier.dart
@@ -1227,9 +1227,7 @@ 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;