Skip to content

Commit 2b3ce53

Browse files
committed
Do not show message if no files were compressed
1 parent f32d396 commit 2b3ce53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,7 @@ export function compress(context) {
6767
fs.writeFileSync(currentFile, result.data, 'utf8')
6868
}
6969
})
70-
UI.message(`SVGO Compressor: ${filesToCompress} file${filesToCompress == 1 ? '' : 's'} compressed`)
70+
if (filesToCompress > 0) {
71+
UI.message(`SVGO Compressor: ${filesToCompress} file${filesToCompress == 1 ? '' : 's'} compressed`)
72+
}
7173
}

0 commit comments

Comments
 (0)