Skip to content

Commit

Permalink
Slight cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza committed Oct 5, 2024
1 parent 3470adf commit 71a8041
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/typed-binary/src/structure/baseTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class BoolSchema extends Schema<boolean> {

export class StringSchema extends Schema<string> {
private static _cachedEncoder: TextEncoder | undefined;

private static get _encoder() {
if (!StringSchema._cachedEncoder) {
StringSchema._cachedEncoder = new TextEncoder();
Expand Down

0 comments on commit 71a8041

Please sign in to comment.