commit | c8556c577d260327be6469bd23d62122a1706b28 | [log] [tgz] |
---|---|---|
author | tijoforyou <tijoforyou@google.com> | Thu Feb 25 13:51:40 2021 -0500 |
committer | Sam Rawlins <sam.rawlins@gmail.com> | Mon Mar 08 16:29:08 2021 -0800 |
tree | d9dc7033a4be1518f66c29fce0db4f8a6616c8fd | |
parent | ecf91954bbbd34b93056fd08c3af42b3319a3d4a [diff] |
Clean up violations of Dart lint "prefer_typing_uninitialized_variables". PREFER specifying a type annotation for uninitialized variables and fields. [Lint documentation](https://dart-lang.github.io/linter/lints/prefer_typing_uninitialized_variables.html) [Dart lints discussion](http://g/dart-lints/GrWil4gpWQ0/V_0S9MjlAQAJ) Tested: tap_presubmit: http://test/OCL:359424889:BASE:359405290:1614246178194:7129d106 Sample tests for this CL passed, but some tests failed during the TGP run. Test failures are believed to be unrelated to this CL PiperOrigin-RevId: 359562635
diff --git a/lib/src/mock.dart b/lib/src/mock.dart index 76b88a9..8d47708 100644 --- a/lib/src/mock.dart +++ b/lib/src/mock.dart
@@ -661,7 +661,7 @@ void _checkWith(bool never) { if (!never && matchingInvocations.isEmpty) { - var message; + String message; if (mock._realCalls.isEmpty) { message = 'No matching calls (actually, no calls at all).'; } else {