Skip to content

Commit

Permalink
fix indices check
Browse files Browse the repository at this point in the history
  • Loading branch information
kimprice committed Oct 13, 2023
1 parent c1f1590 commit 4dc3a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/pxt-python/pxt-python-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ namespace _py {
if (index == undefined) {
return arr.pop();
}
else if (index > 0 && index < arr.length) {
else if (index >= 0 && index < arr.length) {
return arr.removeAt(index | 0);
}

Expand Down

0 comments on commit 4dc3a3d

Please sign in to comment.