Skip to content

Commit 69ba861

Browse files
committed
Use explicit IsNull on BorrowedReference
1 parent 5dacfb4 commit 69ba861

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/TypeManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public static int tp_setattro_dlr_proxy(BorrowedReference ob, BorrowedReference
171171
// Try DLR member storage first
172172
bool handled = false;
173173

174-
if (val == null)
174+
if (val.IsNull)
175175
{
176176
handled = dynamicMemberAccessor.TryDeleteMember(dynamicObject, memberName);
177177
}

0 commit comments

Comments
 (0)