Skip to content

Commit

Permalink
chore: remove redundant statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Feb 19, 2024
1 parent c2238b7 commit c471f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/packages/fury/lib/gen/any.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export class AnySerializer {
if (!serializer) {
throw new Error(`Failed to detect the Fury serializer from JavaScript type: ${typeof v}`);
}
this.fury.binaryWriter.reserve(serializer?.meta.fixedSize);
serializer?.write(v);
this.fury.binaryWriter.reserve(serializer.meta.fixedSize);
serializer.write(v);
}
}

Expand Down

0 comments on commit c471f3c

Please sign in to comment.