Skip to content

Commit

Permalink
Fix incorrect use of switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharparam committed Oct 28, 2015
1 parent e560494 commit d3b6302
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions Corale.Colore/Core/NativeWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/// <summary>
Expand Down

0 comments on commit d3b6302

Please sign in to comment.