Skip to content

Commit 08af42b

Browse files
committed
Fix: add missing return.
1 parent d351da9 commit 08af42b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/foreign/AccessForeignItemNodes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ private void writeForeignValue(Object object, int idx, Object value, InteropLibr
241241
if (lib.isArrayElementModifiable(object, idx)) {
242242
try {
243243
lib.writeArrayElement(object, idx, value);
244+
return;
244245
} catch (InvalidArrayIndexException ex) {
245246
throw raise(IndexError, "invalid index %s", idx);
246247
}

0 commit comments

Comments
 (0)