diff --git a/Corale.Colore/Core/NativeWrapper.cs b/Corale.Colore/Core/NativeWrapper.cs index 1af40267..19da5f30 100644 --- a/Corale.Colore/Core/NativeWrapper.cs +++ b/Corale.Colore/Core/NativeWrapper.cs @@ -471,17 +471,10 @@ internal static void SetEffect(Guid guid) if (result) return; - switch (result) - { - case Result.RzResourceDisabled: - case Result.RzAccessDenied: - Log.WarnFormat("Ambiguous {0} error thrown from call to native function SetEffect.", result); - break; - - default: - throw new NativeCallException("SetEffect", result); - break; - } + if (result == Result.RzResourceDisabled || result == Result.RzAccessDenied) + Log.WarnFormat("Ambiguous {0} error thrown from call to native function SetEffect.", result); + else + throw new NativeCallException("SetEffect", result); } ///