Skip to content

Commit

Permalink
fix: undo breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
runk committed Sep 28, 2023
1 parent 9d030da commit 82112ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ export const detect = (buffer: Uint8Array): string | null => {
};

export const analyse = (buffer: Uint8Array): AnalyseResult => {
if (!isByteArray(buffer)) {
throw new Error('Input must be a byte array, e.g. Buffer or Uint8Array');
}

// Tally up the byte occurrence statistics.
const byteStats = [];
for (let i = 0; i < 256; i++) byteStats[i] = 0;
Expand Down

0 comments on commit 82112ac

Please sign in to comment.