Skip to content

Commit

Permalink
Oopsie, use 'this'
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Jun 24, 2024
1 parent 3982f06 commit a399c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enum.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Enum extends XdrPrimitiveType {
* @inheritDoc
*/
static write(value, writer) {
if (!isValid(value)) {
if (!this.isValid(value)) {
throw new XdrWriterError(
`${value} is ${value?.constructor?.name}/${value?.enumName}, not ${
this.enumName
Expand Down

0 comments on commit a399c38

Please sign in to comment.