Skip to content

Commit

Permalink
fix: warn on not finding any files
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 10, 2024
1 parent 597fccc commit 961c7d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/native/lib.d
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ void minifyFiles(in string[] paths, in bool hasComment = false) @trusted
}
}).joiner().array();

if (files.empty)
{
writeln("No files found.");
return;
}

if (!confirmExtension(files))
{
return;
Expand Down

0 comments on commit 961c7d7

Please sign in to comment.