Unverified Commit 66f424f0 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

fix some bad indentations (#26921)

* fix some bad indentations

* remove suspicious line
parent f329b462
...@@ -83,4 +83,6 @@ class ValueKey<T> extends LocalKey { ...@@ -83,4 +83,6 @@ class ValueKey<T> extends LocalKey {
} }
} }
class _TypeLiteral<T> { Type get type => T; } class _TypeLiteral<T> {
Type get type => T;
}
...@@ -54,7 +54,8 @@ abstract class LicenseEntry { ...@@ -54,7 +54,8 @@ abstract class LicenseEntry {
} }
enum _LicenseEntryWithLineBreaksParserState { enum _LicenseEntryWithLineBreaksParserState {
beforeParagraph, inParagraph, beforeParagraph,
inParagraph,
} }
/// Variant of [LicenseEntry] for licenses that separate paragraphs with blank /// Variant of [LicenseEntry] for licenses that separate paragraphs with blank
......
...@@ -168,7 +168,7 @@ class ScaleGestureRecognizer extends OneSequenceGestureRecognizer { ...@@ -168,7 +168,7 @@ class ScaleGestureRecognizer extends OneSequenceGestureRecognizer {
_LineBetweenPointers _initialLine; _LineBetweenPointers _initialLine;
_LineBetweenPointers _currentLine; _LineBetweenPointers _currentLine;
Map<int, Offset> _pointerLocations; Map<int, Offset> _pointerLocations;
List<int> _pointerQueue; /// A queue to sort pointers in order of entrance List<int> _pointerQueue; // A queue to sort pointers in order of entrance
final Map<int, VelocityTracker> _velocityTrackers = <int, VelocityTracker>{}; final Map<int, VelocityTracker> _velocityTrackers = <int, VelocityTracker>{};
double get _scaleFactor => _initialSpan > 0.0 ? _currentSpan / _initialSpan : 1.0; double get _scaleFactor => _initialSpan > 0.0 ? _currentSpan / _initialSpan : 1.0;
......
...@@ -5,9 +5,7 @@ ...@@ -5,9 +5,7 @@
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import '../flutter_test_alternative.dart'; import '../flutter_test_alternative.dart';
enum _TestEnum { enum _TestEnum { a, b, c, d, e, f, g, h, }
a, b, c, d, e, f, g, h,
}
void main() { void main() {
test('BitField control test', () { test('BitField control test', () {
......
...@@ -449,7 +449,8 @@ Future<void> _buildGradleProjectV2( ...@@ -449,7 +449,8 @@ Future<void> _buildGradleProjectV2(
if (buildInfo.createPatch) { if (buildInfo.createPatch) {
final AndroidApk package = AndroidApk.fromApk(apkFile); final AndroidApk package = AndroidApk.fromApk(apkFile);
final Directory baselineDir = fs.directory(buildInfo.baselineDir); final Directory baselineDir = fs.directory(buildInfo.baselineDir);
final File baselineApkFile = baselineDir.childFile('${package.versionCode}.apk');if (!baselineApkFile.existsSync()) final File baselineApkFile = baselineDir.childFile('${package.versionCode}.apk');
if (!baselineApkFile.existsSync())
throwToolExit('Error: Could not find baseline package ${baselineApkFile.path}.'); throwToolExit('Error: Could not find baseline package ${baselineApkFile.path}.');
printStatus('Found baseline package ${baselineApkFile.path}.'); printStatus('Found baseline package ${baselineApkFile.path}.');
......
...@@ -640,7 +640,6 @@ class PubspecYaml { ...@@ -640,7 +640,6 @@ class PubspecYaml {
// place to insert our transitive dependencies. // place to insert our transitive dependencies.
if (section == Section.dependencies) if (section == Section.dependencies)
endOfDirectDependencies = output.length; endOfDirectDependencies = output.length;
endOfDevDependencies = output.length;
if (section == Section.devDependencies) if (section == Section.devDependencies)
endOfDevDependencies = output.length; endOfDevDependencies = output.length;
section = data.section; // track which section we're now in. section = data.section; // track which section we're now in.
......
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