Skip to content

Commit

Permalink
Fix linting for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rycochet committed Jan 14, 2024
1 parent 2a2c823 commit 517204a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
// LZ-based compression algorithm, version 1.4.5

import type { DecompressionTracker } from "./interfaces";
import type { Dictionary, DictionaryCollection, PendingDictionary } from "./types";
import type {
Dictionary,
DictionaryCollection,
PendingDictionary,
} from "./types";
import invariant from "tiny-invariant";

export interface LZString {
Expand Down Expand Up @@ -367,8 +371,8 @@ export const LZString: LZString = (function () {
value = value >> 1;
}
// Flush the last char
// eslint-disable-next-line no-constant-condition
while (true) {
// eslint-disable-line no-constant-condition
context_data_val = context_data_val << 1;
if (context_data_position == bitsPerChar - 1) {
context_data.push(getCharFromInt(context_data_val));
Expand Down Expand Up @@ -463,8 +467,8 @@ export const LZString: LZString = (function () {
dictionary[3] = String(c);
w = String(c);
result.push(String(c));
// eslint-disable-next-line no-constant-condition
while (true) {
// eslint-disable-line no-constant-condition
if (data.index > length) {
return "";
}
Expand Down

0 comments on commit 517204a

Please sign in to comment.