Remove almost-duplicate code

This commit is contained in:
Tony Garnock-Jones 2019-08-30 21:55:45 +01:00
parent 64c7de832e
commit 942fa30d9d
1 changed files with 1 additions and 2 deletions

View File

@ -188,10 +188,9 @@ class Decoder {
const t = arg >> 2;
const n = arg & 3;
switch (t) {
case 0: throw new DecodeError("Invalid format C start byte (0)");
case 1: return this.wrap(this.binarystream(n));
case 2: return this.wrap(this.valuestream(n));
case 3: throw new DecodeError("Invalid format C start byte (3)");
default: throw new DecodeError("Invalid format C start byte");
}
}
case 3: