Remove almost-duplicate code
This commit is contained in:
parent
64c7de832e
commit
942fa30d9d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue