Reduce code in SafeHandleAddRef (dotnet/coreclr#9724)
authorStephen Toub <stoub@microsoft.com>
Thu, 23 Feb 2017 07:22:43 +0000 (02:22 -0500)
committerDan Moseley <danmose@microsoft.com>
Thu, 23 Feb 2017 07:22:43 +0000 (23:22 -0800)
commite452857be581be825d5a5e67dd9f84735dc1e448
treeb5461fc146009f300b389559df58778a5191d22f
parentd2db18b36e1594408a8be1ab61ac92608781d54c
Reduce code in SafeHandleAddRef (dotnet/coreclr#9724)

If DangerousAddRef returns rather than throws, its argument will be true, so there's no need to branch on it.

Commit migrated from https://github.com/dotnet/coreclr/commit/6af4182d058df3520103d81c3912899e8d29f884
src/coreclr/src/mscorlib/src/System/StubHelpers.cs
src/coreclr/src/mscorlib/src/System/ThrowHelper.cs