Fix formatting (#137613)
Badly formatted code causes distraction when reading, and costs people energy when understanding code.
This commit is contained in:
@@ -10,7 +10,7 @@ import 'package:meta/meta.dart' show immutable;
|
||||
/// Both the [versionMin] and [versionMax] are inclusive versions, and undefined
|
||||
/// values represent an unknown minimum/maximum version.
|
||||
@immutable
|
||||
class VersionRange{
|
||||
class VersionRange {
|
||||
const VersionRange(
|
||||
this.versionMin,
|
||||
this.versionMax,
|
||||
|
||||
@@ -205,7 +205,7 @@ class VariableDumpMachineProjectValidator extends MachineProjectValidator {
|
||||
/// Validator run for all platforms that extract information from the pubspec.yaml.
|
||||
///
|
||||
/// Specific info from different platforms should be written in their own ProjectValidator.
|
||||
class GeneralInfoProjectValidator extends ProjectValidator{
|
||||
class GeneralInfoProjectValidator extends ProjectValidator {
|
||||
@override
|
||||
Future<List<ProjectValidatorResult>> start(FlutterProject project) async {
|
||||
final FlutterManifest flutterManifest = project.manifest;
|
||||
@@ -316,7 +316,7 @@ class PubDependenciesProjectValidator extends ProjectValidator {
|
||||
jsonResult = json.decode(
|
||||
processResult.stdout.toString()
|
||||
) as LinkedHashMap<String, dynamic>;
|
||||
} on FormatException{
|
||||
} on FormatException {
|
||||
result.add(_createProjectValidatorError(name, processResult.stderr.toString()));
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user