Skip to content

Commit 4a308aa

Browse files
MaxGraeydcodeIO
authored andcommitted
remove return from unchecked operator for FixedArray (#603)
1 parent bc29420 commit 4a308aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/assembly/fixedarray.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class FixedArray<T> {
3636

3737
@operator("[]=") private __set(index: i32, value: T): void {
3838
if (<u32>index >= <u32>this.length) throw new RangeError(E_INDEXOUTOFRANGE);
39-
return this.__unchecked_set(index, value);
39+
this.__unchecked_set(index, value);
4040
}
4141

4242
@operator("{}") private __unchecked_get(index: i32): T {

0 commit comments

Comments
 (0)