Commit 56b9245b authored by Hixie's avatar Hixie

Allowing us to have a single error seems silly.

parent 1d3f734a
...@@ -749,6 +749,8 @@ class Positioned extends ParentDataWidget { ...@@ -749,6 +749,8 @@ class Positioned extends ParentDataWidget {
top = rect.top, top = rect.top,
width = rect.width, width = rect.width,
height = rect.height, height = rect.height,
right = null,
bottom = null,
super(key: key, child: child); super(key: key, child: child);
final double top; final double top;
......
...@@ -289,10 +289,10 @@ class AnalyzeCommand extends FlutterCommand { ...@@ -289,10 +289,10 @@ class AnalyzeCommand extends FlutterCommand {
} }
} }
if (exitCode < 0 || exitCode > 3) // 1 = hints, 2 = warnings, 3 = errors if (exitCode < 0 || exitCode > 3) // 0 = nothing, 1 = hints, 2 = warnings, 3 = errors
return exitCode; return exitCode;
if (errorCount > 1) if (errorCount > 0)
return 1; return 1;
if (argResults['congratulate']) if (argResults['congratulate'])
print('No analyzer warnings!'); print('No analyzer warnings!');
......
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