From 62bc9b2f057c6ccdb4f9796e89c747ef98233e64 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Thu, 7 Dec 2023 10:04:52 +0100 Subject: [PATCH] refactor: Replace default cases --- wrestling_scoreboard_client/lib/data/bout_result.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrestling_scoreboard_client/lib/data/bout_result.dart b/wrestling_scoreboard_client/lib/data/bout_result.dart index 27cb35ae..50ed537e 100644 --- a/wrestling_scoreboard_client/lib/data/bout_result.dart +++ b/wrestling_scoreboard_client/lib/data/bout_result.dart @@ -29,7 +29,7 @@ String getDescriptionFromBoutResult(BoutResult? result, BuildContext context) { return loc.boutResultDsq; case BoutResult.dsq2: return loc.boutResultDsq2; - default: + case null: return ''; } } @@ -57,7 +57,7 @@ String getAbbreviationFromBoutResult(BoutResult? result, BuildContext context) { return loc.boutResultDsqAbbr; case BoutResult.dsq2: return loc.boutResultDsq2Abbr; - default: + case null: return ''; } }