Add spaces after flow control statements (#126320)

This commit is contained in:
Tomasz Gucio
2023-05-15 11:07:30 +02:00
committed by GitHub
parent 231e00d26b
commit 99c7e9f088
116 changed files with 264 additions and 174 deletions

View File

@@ -130,7 +130,7 @@ Future<void> expectToolExitLater(Future<dynamic> future, Matcher messageMatcher)
try {
await future;
fail('ToolExit expected, but nothing thrown');
} on ToolExit catch(e) {
} on ToolExit catch (e) {
expect(e.message, messageMatcher);
// Catch all exceptions to give a better test failure message.
} catch (e, trace) { // ignore: avoid_catches_without_on_clauses

View File

@@ -230,7 +230,7 @@ class FakePollingDeviceDiscovery extends PollingDeviceDiscovery {
}
void setDevices(List<Device> devices) {
while(_devices.isNotEmpty) {
while (_devices.isNotEmpty) {
_removeDevice(_devices.first);
}
devices.forEach(addDevice);