Skip to content

Commit

Permalink
This logic got flipped during error API work
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed May 8, 2024
1 parent a3d35cf commit 491e645
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private static RubyArray calcDimensions(final Ruby runtime,
}

private static ArrayJavaProxy assertJavaArrayProxy(final ThreadContext context, final IRubyObject java_array) {
if (java_array instanceof ArrayJavaProxy) throw typeError(context, java_array, "Java array");
if (!(java_array instanceof ArrayJavaProxy)) throw typeError(context, java_array, "Java array");
return (ArrayJavaProxy) java_array;
}

Expand Down

0 comments on commit 491e645

Please sign in to comment.