Skip to content

Commit

Permalink
Remove default switch case when not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-selo committed Jul 6, 2023
1 parent cd8ea3b commit 051f631
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frontend/lib/models/test_execution.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ enum TestExecutionStatus {
return 'Failed';
case notTested:
return 'Not Tested';
default:
throw Exception('Unknown TestExecutionStatus: $this');
}
}

Expand All @@ -64,8 +62,6 @@ enum TestExecutionStatus {
return const Icon(YaruIcons.error, color: YaruColors.red, size: size);
case notTested:
return const Icon(YaruIcons.information, size: size);
default:
throw Exception('Unknown TestExecutionStatus: $this');
}
}
}

0 comments on commit 051f631

Please sign in to comment.