Skip to content

Commit 8d00402

Browse files
authored
Merge pull request #683 from phongphanq/CastleDynamicProxyFactory_HasItem_true_when_array_is_null
CastleDynamicProxyFactory_HasItem_true_when_array_is_null
2 parents 1cefed8 + 7ff4994 commit 8d00402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NSubstitute/Proxies/CastleDynamicProxy/CastleDynamicProxyFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private static void VerifyClassHasNotBeenPassedAsAnAdditionalInterface(Type[]? a
164164
}
165165
}
166166

167-
private static bool HasItems<T>(T[]? array) => array?.Length != 0;
167+
private static bool HasItems<T>(T[]? array) => array?.Length > 0;
168168

169169
private class AllMethodsExceptCallRouterCallsHook : AllMethodsHook
170170
{

0 commit comments

Comments
 (0)