DartLinter: Add prefer_collection_literals

This commit is contained in:
Vishesh Handa
2019-02-23 01:36:13 +01:00
parent 8ff5d02033
commit 9ce4e5b1b9
6 changed files with 8 additions and 8 deletions

View File

@ -93,7 +93,7 @@ class GitHub implements GitHost {
}
List<dynamic> list = jsonDecode(response.body);
var repos = List<GitRepo>();
var repos = <GitRepo>[];
list.forEach((dynamic d) {
var map = Map<String, dynamic>.from(d);
var repo = _repoFromJson(map);