mirror of
https://github.com/flutter/packages.git
synced 2025-05-21 10:46:28 +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) {
|
if (exampleHasUnitTests) {
|
||||||
ranUnitTests = true;
|
ranUnitTests = true;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,6 @@ class UpdateExcerptsCommand extends PackageLoopingCommand {
|
|||||||
language = 'groovy';
|
language = 'groovy';
|
||||||
default:
|
default:
|
||||||
language = extension.substring(1);
|
language = extension.substring(1);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
final String section = match.namedGroup('section')!;
|
final String section = match.namedGroup('section')!;
|
||||||
final String plaster = match.namedGroup('plaster') ?? '···';
|
final String plaster = match.namedGroup('plaster') ?? '···';
|
||||||
|
@ -313,7 +313,6 @@ String _pluginPlatformSection(
|
|||||||
]);
|
]);
|
||||||
default:
|
default:
|
||||||
assert(false, 'Unrecognized platform: $platform');
|
assert(false, 'Unrecognized platform: $platform');
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
entry = '${lines.join('\n')}\n';
|
entry = '${lines.join('\n')}\n';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user