Skip to content

Commit

Permalink
update check
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar committed Jun 17, 2024
1 parent 1cd0d93 commit 007f749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filecheck/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ async function checkCompression(filePath: string, options: CheckerOptions) {
const formattedAfter = formatSize(sizeAfter);

// this check should only be done if we want to save the compressed file
if (sizeAfter > MAX_FILE_SIZE && stat.size > MAX_FILE_SIZE) {
if (sizeAfter > MAX_FILE_SIZE && sizeBefore > MAX_FILE_SIZE) {
throw new Error(
`${getRelativePath(
filePath
Expand Down

0 comments on commit 007f749

Please sign in to comment.