Skip to content

Commit

Permalink
Replace TS strict_checks with source-level suppressions.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 555301924
  • Loading branch information
12wrigja authored and copybara-github committed Aug 9, 2023
1 parent 8c79230 commit 8125e1a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -886,9 +886,15 @@ function decompress(s: State): void {
ringBufferMask = s.ringBufferSize - 1;
ringBuffer = s.ringBuffer;
continue;
// Fallthrough case in switch is intentional.
// tslint:disable-next-line:ban-ts-suppressions
// @ts-ignore error TS7029: Fallthrough case in switch.
case 3:
readMetablockHuffmanCodesAndContextMaps(s);
s.runningState = 4;
// Fallthrough case in switch is intentional.
// tslint:disable-next-line:ban-ts-suppressions
// @ts-ignore error TS7029: Fallthrough case in switch.
case 4:
if (s.metaBlockLength <= 0) {
s.runningState = 2;
Expand Down Expand Up @@ -924,6 +930,9 @@ function decompress(s: State): void {
s.copyLength = copyLengthOffset + ((copyLengthExtraBits <= 16) ? readFewBits(s, copyLengthExtraBits) : readManyBits(s, copyLengthExtraBits));
s.j = 0;
s.runningState = 7;
// Fallthrough case in switch is intentional.
// tslint:disable-next-line:ban-ts-suppressions
// @ts-ignore error TS7029: Fallthrough case in switch.
case 7:
if (s.trivialLiteralContext !== 0) {
while (s.j < s.insertLength) {
Expand Down Expand Up @@ -1106,6 +1115,9 @@ function decompress(s: State): void {
case 6:
copyUncompressedData(s);
continue;
// Fallthrough case in switch is intentional.
// tslint:disable-next-line:ban-ts-suppressions
// @ts-ignore error TS7029: Fallthrough case in switch.
case 12:
s.ringBufferBytesReady = Math.min(s.pos, s.ringBufferSize);
s.runningState = 13;
Expand Down

0 comments on commit 8125e1a

Please sign in to comment.