Skip to content

Commit

Permalink
remove needless assert
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricedesaxe committed Jul 19, 2024
1 parent 7d6f295 commit 514f37e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ func main() {
})
}

func assert(condition bool, msg string) {
if !condition {
log.Fatal(msg)
}
}

// The main function that runs the templCSSSort.
// Takes in flags to determine what to sort and where to sort it.
// If no flags are set, it will sort all .templ files in the current directory and its subdirectories.
Expand Down Expand Up @@ -206,6 +200,5 @@ func removeDuplicates(slice []string) []string {
list = append(list, entry)
}
}
assert(len(list) > 0, "No classes found")
return list
}

0 comments on commit 514f37e

Please sign in to comment.