From e62d253c4b6e7a1541a46bf138964a9f04659e5b Mon Sep 17 00:00:00 2001 From: emalfroy Date: Wed, 17 Jan 2024 08:36:14 +0100 Subject: [PATCH] fix: mapping integration projections --- .../Converters/StreetNameMapper.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/StreetNameRegistry.Projections.Integration/Converters/StreetNameMapper.cs b/src/StreetNameRegistry.Projections.Integration/Converters/StreetNameMapper.cs index f5ec41e7b..a42f0fcb5 100644 --- a/src/StreetNameRegistry.Projections.Integration/Converters/StreetNameMapper.cs +++ b/src/StreetNameRegistry.Projections.Integration/Converters/StreetNameMapper.cs @@ -40,7 +40,6 @@ public static void UpdateNameByLanguage(this StreetNameVersion item, Language? l case Language.English: item.NameEnglish = value; break; - default: throw new InvalidOperationException($"Name language '{language}' has no mapping."); } } @@ -60,7 +59,6 @@ public static void UpdateHomonymAdditionByLanguage(this StreetNameVersion item, case Language.English: item.HomonymAdditionEnglish = value; break; - default: throw new InvalidOperationException($"HomonymAddition language '{language}' has no mapping."); } }