Fix some indentation (#84967)

This commit is contained in:
Ahmed Ashour
2021-07-01 22:41:04 +02:00
committed by GitHub
parent 6c2c702f43
commit 529a599ce6
9 changed files with 26 additions and 26 deletions

View File

@@ -113,18 +113,18 @@ Future<void> main(List<String> args) async {
persistentToolState: globals.persistentToolState,
),
Logger: () {
final LoggerFactory loggerFactory = LoggerFactory(
outputPreferences: globals.outputPreferences,
terminal: globals.terminal,
stdio: globals.stdio,
);
return loggerFactory.createLogger(
daemon: daemon,
machine: runMachine,
verbose: verbose && !muteCommandLogging,
prefixedErrors: prefixedErrors,
windows: globals.platform.isWindows,
);
final LoggerFactory loggerFactory = LoggerFactory(
outputPreferences: globals.outputPreferences,
terminal: globals.terminal,
stdio: globals.stdio,
);
return loggerFactory.createLogger(
daemon: daemon,
machine: runMachine,
verbose: verbose && !muteCommandLogging,
prefixedErrors: prefixedErrors,
windows: globals.platform.isWindows,
);
},
},
);

View File

@@ -540,7 +540,7 @@ class AndroidSdkVersion implements Comparable<AndroidSdkVersion> {
}
String getBuildToolsPath(String binaryName) {
return sdk.directory.childDirectory('build-tools').childDirectory(buildToolsVersionName).childFile(binaryName).path;
return sdk.directory.childDirectory('build-tools').childDirectory(buildToolsVersionName).childFile(binaryName).path;
}
@override

View File

@@ -576,7 +576,7 @@ class CachedArtifacts implements Artifacts {
return _fileSystem.path.join(engineArtifactsPath, platformDirName, _artifactToFileName(artifact, platform, mode));
case Artifact.windowsUwpDesktopPath:
final String engineArtifactsPath = _cache.getArtifactDirectory('engine').path;
return _fileSystem.path.join(engineArtifactsPath, 'windows-uwp-x64-${getNameForBuildMode(mode!)}', _artifactToFileName(artifact, platform, mode));
return _fileSystem.path.join(engineArtifactsPath, 'windows-uwp-x64-${getNameForBuildMode(mode!)}', _artifactToFileName(artifact, platform, mode));
case Artifact.windowsCppClientWrapper:
final String engineArtifactsPath = _cache.getArtifactDirectory('engine').path;
return _fileSystem.path.join(engineArtifactsPath, 'windows-x64', _artifactToFileName(artifact, platform, mode));
@@ -903,7 +903,7 @@ class CachedLocalEngineArtifacts implements LocalEngineArtifacts {
}
String _flutterTesterPath(TargetPlatform platform) {
if (_platform.isLinux) {
if (_platform.isLinux) {
return _fileSystem.path.join(engineOutPath, _artifactToFileName(Artifact.flutterTester));
} else if (_platform.isMacOS) {
return _fileSystem.path.join(engineOutPath, 'flutter_tester');

View File

@@ -162,8 +162,8 @@ class PackagesGetCommand extends FlutterCommand {
final String target = findProjectRoot(globals.fs, workingDirectory);
if (target == null) {
throwToolExit(
'Expected to find project root in '
'${ workingDirectory ?? "current working directory" }.'
'Expected to find project root in '
'${ workingDirectory ?? "current working directory" }.'
);
}
final FlutterProject rootProject = FlutterProject.fromDirectory(globals.fs.directory(target));

View File

@@ -593,7 +593,7 @@ class RunCommand extends RunCommandBase {
}
if (await device.isLocalEmulator && await device.supportsHardwareRendering) {
if (boolArg('enable-software-rendering')) {
globals.printStatus(
globals.printStatus(
'Using software rendering with device ${device.name}. You may get better performance '
'with hardware mode by configuring hardware rendering for your device.'
);

View File

@@ -87,7 +87,7 @@ class SymbolizeCommand extends FlutterCommand {
if (!outputFile.parent.existsSync()) {
outputFile.parent.createSync(recursive: true);
}
output = outputFile.openWrite();
output = outputFile.openWrite();
} else {
final StreamController<List<int>> outputController = StreamController<List<int>>();
outputController

View File

@@ -471,7 +471,7 @@ void main() {
"generator": "pub",
"generatorVersion": "2.12.0-76.0.dev"
}
''');
''');
final FakeReportingNullSafetyCommand command = FakeReportingNullSafetyCommand();
final CommandRunner<void> runner = createTestCommandRunner(command);

View File

@@ -1106,7 +1106,7 @@ void main() {
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[
listViews,
listViews,
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object>{
@@ -1132,7 +1132,7 @@ void main() {
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[
listViews,
listViews,
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object>{
@@ -1168,7 +1168,7 @@ void main() {
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[
listViews,
listViews,
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object>{
@@ -1205,7 +1205,7 @@ void main() {
final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[
listViews,
listViews,
FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner',
args: <String, Object>{

View File

@@ -512,7 +512,7 @@ class FlutterRunTestDriver extends FlutterTestDriver {
await _setupProcess(
<String>[
'attach',
...getLocalEngineArguments(),
...getLocalEngineArguments(),
'--machine',
if (!spawnDdsInstance)
'--no-dds',
@@ -732,7 +732,7 @@ class FlutterTestTestDriver extends FlutterTestDriver {
}) async {
await _setupProcess(<String>[
'test',
...getLocalEngineArguments(),
...getLocalEngineArguments(),
'--disable-service-auth-codes',
'--machine',
if (coverage)