Skip to content

Commit b39fc07

Browse files
[script] Remove unnecessary breaks in default clauses of switch statements (flutter#7469)
See https://dart.googlesource.com/sdk.git/+/045d26bc74209f5acc6466669f89686344e83de2
1 parent c5d03ee commit b39fc07

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

script/tool/lib/src/native_test_command.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ this command.
500500
if (exampleHasUnitTests) {
501501
ranUnitTests = true;
502502
}
503-
break;
504503
}
505504
}
506505

script/tool/lib/src/update_excerpts_command.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ class UpdateExcerptsCommand extends PackageLoopingCommand {
149149
language = 'groovy';
150150
default:
151151
language = extension.substring(1);
152-
break;
153152
}
154153
final String section = match.namedGroup('section')!;
155154
final String plaster = match.namedGroup('plaster') ?? '···';

script/tool/test/util.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ String _pluginPlatformSection(
313313
]);
314314
default:
315315
assert(false, 'Unrecognized platform: $platform');
316-
break;
317316
}
318317
entry = '${lines.join('\n')}\n';
319318
}

0 commit comments

Comments
 (0)