Fixed code smells

This commit is contained in:
Imran Remtulla
2023-05-14 12:29:37 -04:00
parent f80c9ec33e
commit d212f13345
13 changed files with 8 additions and 16 deletions

View File

@ -83,12 +83,12 @@ class GitLab extends AppSource {
}
var json = jsonDecode(res.body) as List<dynamic>;
Map<String, List<String>> results = {};
json.forEach((element) {
for (var element in json) {
results['https://$host/${element['path_with_namespace']}'] = [
element['name_with_namespace'],
element['description'] ?? tr('noDescription')
];
});
}
return results;
}