Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Nov 29, 2024
1 parent dc79cf1 commit 4e4dc37
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkgs/quest/bin/quest.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,17 @@ class Quest {
}

Future<Map<Level, CheckResult>> runChecks(String path, Level level) async {
final success = <Level, CheckResult>{};
success[Level.solve] = await runFlutter(['pub', 'get'], path);
if (level.index >= Level.analyze.index) {
success[Level.analyze] = await runFlutter(['analyze'], path);
final result = <Level, CheckResult>{};
result[Level.solve] = await runFlutter(['pub', 'get'], path);
if (level.index >= Level.analyze.index &&
result[Level.solve]?.success == true) {
result[Level.analyze] = await runFlutter(['analyze'], path);
}
if (level.index >= Level.test.index) {
success[Level.test] = await runFlutter(['test'], path);
if (level.index >= Level.test.index &&
result[Level.solve]?.success == true) {
result[Level.test] = await runFlutter(['test'], path);
}
return success;
return result;
}

Future<CheckResult> runFlutter(
Expand Down

0 comments on commit 4e4dc37

Please sign in to comment.