Trivial nit fixes (#12285)
diff --git a/packages/flutter_tools/lib/src/commands/analyze_base.dart b/packages/flutter_tools/lib/src/commands/analyze_base.dart index fc8c8b5..daebe97 100644 --- a/packages/flutter_tools/lib/src/commands/analyze_base.dart +++ b/packages/flutter_tools/lib/src/commands/analyze_base.dart
@@ -53,8 +53,8 @@ bool get isBenchmarking => argResults['benchmark']; } -/// Return `true` if [fileList] contains a path that resides inside the Flutter repository. -/// If [fileList] is empty, then return `true` if the current directory resides inside the Flutter repository. +/// Return true if [fileList] contains a path that resides inside the Flutter repository. +/// If [fileList] is empty, then return true if the current directory resides inside the Flutter repository. bool inRepo(List<String> fileList) { if (fileList == null || fileList.isEmpty) fileList = <String>[fs.path.current];
diff --git a/packages/flutter_tools/lib/src/commands/create.dart b/packages/flutter_tools/lib/src/commands/create.dart index 6e31fa9..432b971 100644 --- a/packages/flutter_tools/lib/src/commands/create.dart +++ b/packages/flutter_tools/lib/src/commands/create.dart
@@ -383,7 +383,7 @@ final FileSystemEntityType type = fs.typeSync(dirPath); if (type != FileSystemEntityType.NOT_FOUND) { - switch(type) { + switch (type) { case FileSystemEntityType.FILE: // Do not overwrite files. return "Invalid project name: '$dirPath' - file exists.";