Unverified Commit 529a599c authored by Ahmed Ashour's avatar Ahmed Ashour Committed by GitHub

Fix some indentation (#84967)

parent 6c2c702f
...@@ -113,18 +113,18 @@ Future<void> main(List<String> args) async { ...@@ -113,18 +113,18 @@ Future<void> main(List<String> args) async {
persistentToolState: globals.persistentToolState, persistentToolState: globals.persistentToolState,
), ),
Logger: () { Logger: () {
final LoggerFactory loggerFactory = LoggerFactory( final LoggerFactory loggerFactory = LoggerFactory(
outputPreferences: globals.outputPreferences, outputPreferences: globals.outputPreferences,
terminal: globals.terminal, terminal: globals.terminal,
stdio: globals.stdio, stdio: globals.stdio,
); );
return loggerFactory.createLogger( return loggerFactory.createLogger(
daemon: daemon, daemon: daemon,
machine: runMachine, machine: runMachine,
verbose: verbose && !muteCommandLogging, verbose: verbose && !muteCommandLogging,
prefixedErrors: prefixedErrors, prefixedErrors: prefixedErrors,
windows: globals.platform.isWindows, windows: globals.platform.isWindows,
); );
}, },
}, },
); );
......
...@@ -540,7 +540,7 @@ class AndroidSdkVersion implements Comparable<AndroidSdkVersion> { ...@@ -540,7 +540,7 @@ class AndroidSdkVersion implements Comparable<AndroidSdkVersion> {
} }
String getBuildToolsPath(String binaryName) { 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 @override
......
...@@ -576,7 +576,7 @@ class CachedArtifacts implements Artifacts { ...@@ -576,7 +576,7 @@ class CachedArtifacts implements Artifacts {
return _fileSystem.path.join(engineArtifactsPath, platformDirName, _artifactToFileName(artifact, platform, mode)); return _fileSystem.path.join(engineArtifactsPath, platformDirName, _artifactToFileName(artifact, platform, mode));
case Artifact.windowsUwpDesktopPath: case Artifact.windowsUwpDesktopPath:
final String engineArtifactsPath = _cache.getArtifactDirectory('engine').path; 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: case Artifact.windowsCppClientWrapper:
final String engineArtifactsPath = _cache.getArtifactDirectory('engine').path; final String engineArtifactsPath = _cache.getArtifactDirectory('engine').path;
return _fileSystem.path.join(engineArtifactsPath, 'windows-x64', _artifactToFileName(artifact, platform, mode)); return _fileSystem.path.join(engineArtifactsPath, 'windows-x64', _artifactToFileName(artifact, platform, mode));
...@@ -903,7 +903,7 @@ class CachedLocalEngineArtifacts implements LocalEngineArtifacts { ...@@ -903,7 +903,7 @@ class CachedLocalEngineArtifacts implements LocalEngineArtifacts {
} }
String _flutterTesterPath(TargetPlatform platform) { String _flutterTesterPath(TargetPlatform platform) {
if (_platform.isLinux) { if (_platform.isLinux) {
return _fileSystem.path.join(engineOutPath, _artifactToFileName(Artifact.flutterTester)); return _fileSystem.path.join(engineOutPath, _artifactToFileName(Artifact.flutterTester));
} else if (_platform.isMacOS) { } else if (_platform.isMacOS) {
return _fileSystem.path.join(engineOutPath, 'flutter_tester'); return _fileSystem.path.join(engineOutPath, 'flutter_tester');
......
...@@ -162,8 +162,8 @@ class PackagesGetCommand extends FlutterCommand { ...@@ -162,8 +162,8 @@ class PackagesGetCommand extends FlutterCommand {
final String target = findProjectRoot(globals.fs, workingDirectory); final String target = findProjectRoot(globals.fs, workingDirectory);
if (target == null) { if (target == null) {
throwToolExit( throwToolExit(
'Expected to find project root in ' 'Expected to find project root in '
'${ workingDirectory ?? "current working directory" }.' '${ workingDirectory ?? "current working directory" }.'
); );
} }
final FlutterProject rootProject = FlutterProject.fromDirectory(globals.fs.directory(target)); final FlutterProject rootProject = FlutterProject.fromDirectory(globals.fs.directory(target));
......
...@@ -593,7 +593,7 @@ class RunCommand extends RunCommandBase { ...@@ -593,7 +593,7 @@ class RunCommand extends RunCommandBase {
} }
if (await device.isLocalEmulator && await device.supportsHardwareRendering) { if (await device.isLocalEmulator && await device.supportsHardwareRendering) {
if (boolArg('enable-software-rendering')) { if (boolArg('enable-software-rendering')) {
globals.printStatus( globals.printStatus(
'Using software rendering with device ${device.name}. You may get better performance ' 'Using software rendering with device ${device.name}. You may get better performance '
'with hardware mode by configuring hardware rendering for your device.' 'with hardware mode by configuring hardware rendering for your device.'
); );
......
...@@ -87,7 +87,7 @@ class SymbolizeCommand extends FlutterCommand { ...@@ -87,7 +87,7 @@ class SymbolizeCommand extends FlutterCommand {
if (!outputFile.parent.existsSync()) { if (!outputFile.parent.existsSync()) {
outputFile.parent.createSync(recursive: true); outputFile.parent.createSync(recursive: true);
} }
output = outputFile.openWrite(); output = outputFile.openWrite();
} else { } else {
final StreamController<List<int>> outputController = StreamController<List<int>>(); final StreamController<List<int>> outputController = StreamController<List<int>>();
outputController outputController
......
...@@ -471,7 +471,7 @@ void main() { ...@@ -471,7 +471,7 @@ void main() {
"generator": "pub", "generator": "pub",
"generatorVersion": "2.12.0-76.0.dev" "generatorVersion": "2.12.0-76.0.dev"
} }
'''); ''');
final FakeReportingNullSafetyCommand command = FakeReportingNullSafetyCommand(); final FakeReportingNullSafetyCommand command = FakeReportingNullSafetyCommand();
final CommandRunner<void> runner = createTestCommandRunner(command); final CommandRunner<void> runner = createTestCommandRunner(command);
......
...@@ -1106,7 +1106,7 @@ void main() { ...@@ -1106,7 +1106,7 @@ void main() {
final FileSystem fileSystem = MemoryFileSystem.test(); final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler( final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[ <FakeVmServiceRequest>[
listViews, listViews,
FakeVmServiceRequest( FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner', method: 'ext.flutter.debugAllowBanner',
args: <String, Object>{ args: <String, Object>{
...@@ -1132,7 +1132,7 @@ void main() { ...@@ -1132,7 +1132,7 @@ void main() {
final FileSystem fileSystem = MemoryFileSystem.test(); final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler( final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[ <FakeVmServiceRequest>[
listViews, listViews,
FakeVmServiceRequest( FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner', method: 'ext.flutter.debugAllowBanner',
args: <String, Object>{ args: <String, Object>{
...@@ -1168,7 +1168,7 @@ void main() { ...@@ -1168,7 +1168,7 @@ void main() {
final FileSystem fileSystem = MemoryFileSystem.test(); final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler( final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[ <FakeVmServiceRequest>[
listViews, listViews,
FakeVmServiceRequest( FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner', method: 'ext.flutter.debugAllowBanner',
args: <String, Object>{ args: <String, Object>{
...@@ -1205,7 +1205,7 @@ void main() { ...@@ -1205,7 +1205,7 @@ void main() {
final FileSystem fileSystem = MemoryFileSystem.test(); final FileSystem fileSystem = MemoryFileSystem.test();
final TerminalHandler terminalHandler = setUpTerminalHandler( final TerminalHandler terminalHandler = setUpTerminalHandler(
<FakeVmServiceRequest>[ <FakeVmServiceRequest>[
listViews, listViews,
FakeVmServiceRequest( FakeVmServiceRequest(
method: 'ext.flutter.debugAllowBanner', method: 'ext.flutter.debugAllowBanner',
args: <String, Object>{ args: <String, Object>{
......
...@@ -512,7 +512,7 @@ class FlutterRunTestDriver extends FlutterTestDriver { ...@@ -512,7 +512,7 @@ class FlutterRunTestDriver extends FlutterTestDriver {
await _setupProcess( await _setupProcess(
<String>[ <String>[
'attach', 'attach',
...getLocalEngineArguments(), ...getLocalEngineArguments(),
'--machine', '--machine',
if (!spawnDdsInstance) if (!spawnDdsInstance)
'--no-dds', '--no-dds',
...@@ -732,7 +732,7 @@ class FlutterTestTestDriver extends FlutterTestDriver { ...@@ -732,7 +732,7 @@ class FlutterTestTestDriver extends FlutterTestDriver {
}) async { }) async {
await _setupProcess(<String>[ await _setupProcess(<String>[
'test', 'test',
...getLocalEngineArguments(), ...getLocalEngineArguments(),
'--disable-service-auth-codes', '--disable-service-auth-codes',
'--machine', '--machine',
if (coverage) if (coverage)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment