Skip to content

Commit

Permalink
cmd: fix --type not set error when it is set, fixes #675
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Mar 3, 2024
1 parent 5079cf5 commit f026464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/minify/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ func createTasks(fsys fs.FS, inputs []string, output string) ([]Task, []string,
} else if info.Mode().IsRegular() {
valid := fileFilter(input) // don't filter mimetype
if valid || sync {
if !sync {
if mimetype == "" && !sync {
ext := filepath.Ext(input)
if 0 < len(ext) {
ext = ext[1:]
Expand Down

0 comments on commit f026464

Please sign in to comment.