Skip to content

Commit d1dd227

Browse files
committed
Update coding style in QCallTypeHandle:.ctor ().
1 parent 972a3cf commit d1dd227

File tree

1 file changed

+1
-4
lines changed
  • src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices

1 file changed

+1
-4
lines changed

src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/QCallHandles.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ internal unsafe ref struct QCallTypeHandle
8888
internal QCallTypeHandle(ref System.RuntimeType type)
8989
{
9090
_ptr = Unsafe.AsPointer(ref type);
91-
if (type != null)
92-
_handle = type.GetUnderlyingNativeHandle();
93-
else
94-
_handle = IntPtr.Zero;
91+
_handle = type?.GetUnderlyingNativeHandle() ?? IntPtr.Zero;
9592
}
9693

9794
internal QCallTypeHandle(ref System.RuntimeTypeHandle rth)

0 commit comments

Comments
 (0)