Fix error_processor_test.dart's use of USE_OF_VOID_RESULT.

The message for this error code doesn't accept any arguments, so
there's no reason for the test to provide any.

Change-Id: I6306cead7865704c9074dd0dc2a1bc1aacaeda16
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213724
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
Paul Berry 2021-09-17 15:48:51 +00:00 committed by commit-bot@chromium.org
parent 6f86375f9c
commit f8b1161496

View file

@ -37,9 +37,7 @@ main() {
]);
AnalysisError use_of_void_result = AnalysisError(
TestSource(), 0, 1, CompileTimeErrorCode.USE_OF_VOID_RESULT, [
['x']
]);
TestSource(), 0, 1, CompileTimeErrorCode.USE_OF_VOID_RESULT, []);
// We in-line a lint code here in order to avoid adding a dependency on the
// linter package.