Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
fix noop toString() diagnostics (#35100)
Browse files Browse the repository at this point in the history
  • Loading branch information
pq authored Aug 2, 2022
1 parent 90e240e commit ae0513e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/web_ui/dev/create_simulator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CreateSimulatorCommand extends Command<bool> with ArgUtils<bool> {
lock.minorVersion,
lock.device,
);
print('INFO: Simulator created ${simulator.toString()}');
print('INFO: Simulator created $simulator');
} catch (e) {
throw Exception('Error creating requested simulator. You can use Xcode '
'to install more versions: XCode > Preferences > Components.'
Expand Down
2 changes: 1 addition & 1 deletion lib/web_ui/dev/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Future<void> runFlutter(
if (exitCode != 0) {
throw ToolExit(
'ERROR: Failed to run $executable with '
'arguments ${arguments.toString()}. Exited with exit code $exitCode',
'arguments $arguments. Exited with exit code $exitCode',
exitCode: exitCode,
);
}
Expand Down
4 changes: 2 additions & 2 deletions lib/web_ui/test/text/line_breaker_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void testMain() {
result.index,
i,
reason: 'Failed at test case number $t:\n'
'${testCase.toString()}\n'
'$testCase\n'
'"$text"\n'
'\nExpected line break at {$lastLineBreak - $i} but found line break at {$lastLineBreak - ${result.index}}.',
);
Expand All @@ -283,7 +283,7 @@ void testMain() {
result.index,
greaterThan(i),
reason: 'Failed at test case number $t:\n'
'${testCase.toString()}\n'
'$testCase\n'
'"$text"\n'
'\nUnexpected line break found at {$lastLineBreak - ${result.index}}.',
);
Expand Down

0 comments on commit ae0513e

Please sign in to comment.