forked from firka/flutter
Add space before curly parentheses. (#85306)
This commit is contained in:
@@ -1106,7 +1106,7 @@ class ArtifactUpdater {
|
||||
}
|
||||
|
||||
@visibleForTesting
|
||||
String flattenNameSubdirs(Uri url, FileSystem fileSystem){
|
||||
String flattenNameSubdirs(Uri url, FileSystem fileSystem) {
|
||||
final List<String> pieces = <String>[url.host, ...url.pathSegments];
|
||||
final Iterable<String> convertedPieces = pieces.map<String>(_flattenNameNoSubdirs);
|
||||
return fileSystem.path.joinAll(convertedPieces);
|
||||
|
||||
@@ -96,7 +96,7 @@ class ChannelCommand extends FlutterCommand {
|
||||
// only print non-missing channels
|
||||
if (availableChannels[i]) {
|
||||
String currentIndicator = ' ';
|
||||
if (officialChannels[i] == currentChannel){
|
||||
if (officialChannels[i] == currentChannel) {
|
||||
currentIndicator = '*';
|
||||
}
|
||||
globals.printStatus('$currentIndicator ${officialChannels[i]}');
|
||||
|
||||
@@ -308,7 +308,7 @@ class CreateCommand extends CreateBase {
|
||||
_printPluginDirectoryLocationMessage(relativePluginPath, projectName, platformsString);
|
||||
if (!creatingNewProject && requestedPlatforms.isNotEmpty) {
|
||||
_printPluginUpdatePubspecMessage(relativePluginPath, platformsString);
|
||||
} else if (_getSupportedPlatformsInPlugin(projectDir).isEmpty){
|
||||
} else if (_getSupportedPlatformsInPlugin(projectDir).isEmpty) {
|
||||
_printNoPluginMessage();
|
||||
}
|
||||
|
||||
|
||||
@@ -266,7 +266,7 @@ abstract class DeviceManager {
|
||||
.where((Device device) => device.ephemeral == true)
|
||||
.toList();
|
||||
|
||||
if (ephemeralDevices.length == 1){
|
||||
if (ephemeralDevices.length == 1) {
|
||||
devices = ephemeralDevices;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ Map<String, dynamic> getDesiredCapabilities(Browser browser, bool headless, [Str
|
||||
}
|
||||
|
||||
/// Converts [browserName] string to [Browser]
|
||||
Browser _browserNameToEnum(String browserName){
|
||||
Browser _browserNameToEnum(String browserName) {
|
||||
switch (browserName) {
|
||||
case 'android-chrome': return Browser.androidChrome;
|
||||
case 'chrome': return Browser.chrome;
|
||||
|
||||
Reference in New Issue
Block a user