We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8015c25 + 4d8ea0c commit 3cd6038Copy full SHA for 3cd6038
src/Decoder.ts
@@ -117,10 +117,7 @@ export class Decoder<ContextType> {
117
public decode(buffer: ArrayLike<number> | ArrayBuffer): unknown {
118
this.reinitializeState();
119
this.setBuffer(buffer);
120
- return this.doDecodeSingleSync();
121
- }
122
123
- private doDecodeSingleSync(): unknown {
124
const object = this.doDecodeSync();
125
if (this.hasRemaining()) {
126
throw this.createExtraByteError(this.pos);
0 commit comments