Skip to content

Commit

Permalink
fix indices check (#9721)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimprice authored Oct 13, 2023
1 parent 0e13133 commit ae5ff1e
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 ae5ff1e

Please sign in to comment.