apply upcoming rule use_collection_literals_when_possible (#8649)

This commit is contained in:
Alexandre Ardhuin
2017-03-08 23:57:31 +01:00
committed by Ian Hickson
parent 906103dd10
commit 329e52c02c
32 changed files with 56 additions and 59 deletions

View File

@@ -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;
}