mirror of
https://github.com/flutter/packages.git
synced 2025-05-21 02:36:38 +08:00
[script] Remove unnecessary breaks in default clauses of switch statements (#7469)
See https://dart.googlesource.com/sdk.git/+/045d26bc74209f5acc6466669f89686344e83de2
This commit is contained in:
@ -500,7 +500,6 @@ this command.
|
||||
if (exampleHasUnitTests) {
|
||||
ranUnitTests = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -149,7 +149,6 @@ class UpdateExcerptsCommand extends PackageLoopingCommand {
|
||||
language = 'groovy';
|
||||
default:
|
||||
language = extension.substring(1);
|
||||
break;
|
||||
}
|
||||
final String section = match.namedGroup('section')!;
|
||||
final String plaster = match.namedGroup('plaster') ?? '···';
|
||||
|
@ -313,7 +313,6 @@ String _pluginPlatformSection(
|
||||
]);
|
||||
default:
|
||||
assert(false, 'Unrecognized platform: $platform');
|
||||
break;
|
||||
}
|
||||
entry = '${lines.join('\n')}\n';
|
||||
}
|
||||
|
Reference in New Issue
Block a user