Skip to content

Commit fd0fbe2

Browse files
authored
Merge pull request #26 from 343dev/imporvement/eslint
Update @343dev/eslint-config
2 parents 9477ce9 + 7148995 commit fd0fbe2

File tree

3 files changed

+345
-258
lines changed

3 files changed

+345
-258
lines changed

optimize.js

+1-1
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)