Reduce code in SafeHandleAddRef (#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)
commit6af4182d058df3520103d81c3912899e8d29f884
treeeb7d5611515688ad92e73f429d842ba6bd1192a3
parent7d9e01719d29b9dda2d1f53fe15461f9b371e604
Reduce code in SafeHandleAddRef (#9724)

If DangerousAddRef returns rather than throws, its argument will be true, so there's no need to branch on it.
src/mscorlib/src/System/StubHelpers.cs
src/mscorlib/src/System/ThrowHelper.cs