[skip ci] Add defaults to switches
MODIFY
WalletWasabi/Gma/QrCodeNet/Encoding/Masking/PatternFactory.cs
WalletWasabi/Gma/QrCodeNet/Encoding/Masking/PatternFactory.cs
@@ -34,6 +34,9 @@ namespace Gma.QrCodeNet.Encoding.Masking
case MaskPatternType.Type7:
return new Pattern7();
+
+ default:
+ throw new NotSupportedException("This is impossible.");
}
throw new ArgumentException(string.Format("Usupported pattern type {0}", maskPatternType), "maskPatternType");

MODIFY
WalletWasabi/Logging/Logger.cs
WalletWasabi/Logging/Logger.cs
@@ -164,6 +164,9 @@ namespace WalletWasabi.Logging
case LogLevel.Critical:
color = ConsoleColor.Red;
break;
+
+ default:
+ throw new NotSupportedException("This is impossible.");
}
Console.ForegroundColor = color;

[skip ci] Add defaults to switches