Skip to content

Commit 9c63a87

Browse files
inoaslpil
authored andcommitted
lower-first
1 parent 42875ab commit 9c63a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gleam_stdlib_decode_ffi.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function index(data, key) {
1616
const key_is_int = Number.isInteger(key);
1717

1818
// Only elements 0-7 of lists can be indexed, negative indices are not allowed
19-
if (key_is_int && key < 8 && key >= 0 && data instanceof List) {
19+
if (key_is_int && key >= 0 && key < 8 && data instanceof List) {
2020
let i = 0;
2121
for (const value of data) {
2222
if (i === key) return new Ok(new Some(value));

0 commit comments

Comments
 (0)