add missing trailing commas in list/set/map literals (#102585)

This commit is contained in:
Alexandre Ardhuin
2022-04-27 09:15:35 +02:00
committed by GitHub
parent 0b80f08cf0
commit 07f1c20474
271 changed files with 1236 additions and 1141 deletions

View File

@@ -18,7 +18,7 @@ void writeCustomDevicesConfigFile(
<String, dynamic>{
'custom-devices': configs != null ?
configs.map<dynamic>((CustomDeviceConfig c) => c.toJson()).toList() :
json
json,
},
));
}
@@ -58,5 +58,5 @@ const Map<String, dynamic> testConfigJson = <String, dynamic>{
'uninstall': <String>['testuninstall'],
'runDebug': <String>['testrundebug'],
'forwardPort': <String>['testforwardport'],
'forwardPortSuccessRegex': 'testforwardportsuccess'
'forwardPortSuccessRegex': 'testforwardportsuccess',
};

View File

@@ -28,8 +28,8 @@ List<FakeDeviceJsonData> fakeDevices = <FakeDeviceJsonData>[
'fastStart': false,
'flutterExit': true,
'hardwareRendering': true,
'startPaused': true
}
'startPaused': true,
},
}
),
FakeDeviceJsonData(
@@ -50,9 +50,9 @@ List<FakeDeviceJsonData> fakeDevices = <FakeDeviceJsonData>[
'fastStart': false,
'flutterExit': true,
'hardwareRendering': true,
'startPaused': true
}
}
'startPaused': true,
},
},
),
];

View File

@@ -53,7 +53,7 @@ class FakeVmServiceHost {
'error': <String, Object?>{
'code': fakeRequest.errorCode,
'message': 'error',
}
},
}));
}
_applyStreamListen();

View File

@@ -22,7 +22,7 @@ class FakeDyldEnvironmentArtifact extends ArtifactSet {
FakeDyldEnvironmentArtifact() : super(DevelopmentArtifact.iOS);
@override
Map<String, String> get environment => <String, String>{
'DYLD_LIBRARY_PATH': '/path/to/libraries'
'DYLD_LIBRARY_PATH': '/path/to/libraries',
};
@override