Skip to content

Commit 7148995

Browse files
committed
Fix ESlint problems
1 parent 72b38b0 commit 7148995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async function processFile({
9595
const isChanged = !fileBuffer.equals(processedFileBuffer);
9696
const isSvg = path.extname(filePath.input).toLowerCase() === '.svg';
9797

98-
if (!isOptimized && !(isChanged && isSvg)) {
98+
if (!isOptimized && (!isChanged || !isSvg)) {
9999
logProgressVerbose(getRelativePath(filePath.input), {
100100
description: `${(isChanged ? 'File size increased' : 'Nothing changed')}. Skipped`,
101101
progressBarContainer,

0 commit comments

Comments
 (0)