diff src/luan/LuanTable.java @ 1708:8d257d56dc42

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 04 Jul 2022 14:06:59 -0600
parents 93b9fd13a06c
children b1b1f9a14928
line wrap: on
line diff
--- a/src/luan/LuanTable.java	Mon Jul 04 12:40:59 2022 -0600
+++ b/src/luan/LuanTable.java	Mon Jul 04 14:06:59 2022 -0600
@@ -259,11 +259,7 @@
 
 	public Object removeFromList(int pos) throws LuanException {
 		checkMutable();
-		try {
-			return list().remove(pos-1);
-		} catch(IndexOutOfBoundsException e) {
-			throw new LuanException("index out of bounds - "+e.getMessage());
-		}
+		return list().remove(pos-1);
 	}
 
 	public void rawSort(Comparator<Object> cmp) throws LuanException {