Add missing trailing commas (#28673)
* add trailing commas on list/map/parameters * add trailing commas on Invocation with nb of arg>1 * add commas for widget containing widgets * add trailing commas if instantiation contains trailing comma * revert bad change
This commit is contained in:
committed by
GitHub
parent
046f960ae2
commit
387f885481
@@ -44,13 +44,13 @@ Future<void> main() async {
|
||||
'deviceId': words[1],
|
||||
'projectDirectory': words[2],
|
||||
'launchMode': words[3],
|
||||
}
|
||||
},
|
||||
});
|
||||
} else if (words.first == 'stop') {
|
||||
if (words.length > 1) {
|
||||
_send(<String, dynamic>{
|
||||
'method': 'app.stop',
|
||||
'params': <String, dynamic> { 'appId': words[1] }
|
||||
'params': <String, dynamic> { 'appId': words[1] },
|
||||
});
|
||||
} else {
|
||||
_send(<String, dynamic>{'method': 'app.stop'});
|
||||
@@ -59,7 +59,7 @@ Future<void> main() async {
|
||||
if (words.length > 1) {
|
||||
_send(<String, dynamic>{
|
||||
'method': 'app.restart',
|
||||
'params': <String, dynamic> { 'appId': words[1] }
|
||||
'params': <String, dynamic> { 'appId': words[1] },
|
||||
});
|
||||
} else {
|
||||
_send(<String, dynamic>{'method': 'app.restart'});
|
||||
@@ -72,8 +72,8 @@ Future<void> main() async {
|
||||
_send(<String, dynamic>{
|
||||
'method': 'emulator.launch',
|
||||
'params': <String, dynamic>{
|
||||
'emulatorId': words[1]
|
||||
}
|
||||
'emulatorId': words[1],
|
||||
},
|
||||
});
|
||||
} else if (line == 'enable') {
|
||||
_send(<String, dynamic>{'method': 'device.enable'});
|
||||
|
||||
Reference in New Issue
Block a user