Skip to content

Commit e95abe1

Browse files
committed
Fix: invalid fallthrough.
1 parent 96bfcc6 commit e95abe1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/PythonAbstractObject.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ public void writeArrayElement(long key, Object value,
264264
// it's a sequence, so we assume the index is wrong
265265
throw InvalidArrayIndexException.create(key);
266266
}
267+
} else {
268+
throw UnsupportedMessageException.create();
267269
}
268-
269-
throw UnsupportedMessageException.create();
270270
}
271271

272272
@ExportMessage
@@ -281,9 +281,9 @@ public void removeArrayElement(long key,
281281
// it's a sequence, so we assume the index is wrong
282282
throw InvalidArrayIndexException.create(key);
283283
}
284+
} else {
285+
throw UnsupportedMessageException.create();
284286
}
285-
286-
throw UnsupportedMessageException.create();
287287
}
288288

289289
private static Object iterateToKey(LookupInheritedAttributeNode.Dynamic lookupNextNode, CallNode callNextNode, Object iter, long key) {

0 commit comments

Comments
 (0)