apply upcoming rule use_collection_literals_when_possible (#8649)
This commit is contained in:
committed by
Ian Hickson
parent
906103dd10
commit
329e52c02c
@@ -303,7 +303,7 @@ class CalcExpression {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
final List<ExpressionToken> outList = new List<ExpressionToken>();
|
||||
final List<ExpressionToken> outList = <ExpressionToken>[];
|
||||
outList.add(new ResultToken(currentTermValue));
|
||||
return new CalcExpression(outList, ExpressionState.Result);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ Future<Null> saveDurationsHistogram(List<Map<String, dynamic>> events, String ou
|
||||
startEvent = event;
|
||||
} else if (startEvent != null && eventName == 'Frame') {
|
||||
final String routeName = startEvent['args']['to'];
|
||||
durations[routeName] ??= new List<int>();
|
||||
durations[routeName] ??= <int>[];
|
||||
durations[routeName].add(event['dur']);
|
||||
startEvent = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user