Skip to content

Commit

Permalink
refactor: remove redundant return from VecCoder.decode() (#971)
Browse files Browse the repository at this point in the history
* refactor: remove redundant return from vec coder decode function

* chore: changeset

---------

Co-authored-by: danielbate <--global>
  • Loading branch information
danielbate authored May 3, 2023
1 parent 741b277 commit 41da365
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hot-parrots-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/abi-coder": patch
---

Remove redundant return statement from vec decode function
1 change: 0 additions & 1 deletion packages/abi-coder/src/coders/vec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,5 @@ export default class VecCoder<TCoder extends Coder> extends Coder<

decode(data: Uint8Array, offset: number): [DecodedValueOf<TCoder>, number] {
this.throwError('unexpected Vec decode', 'not implemented');
return [undefined as unknown as DecodedValueOf<TCoder>, offset];
}
}

0 comments on commit 41da365

Please sign in to comment.