Skip to content

Commit

Permalink
fix: Don't import strings if case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 11, 2024
1 parent 5ff271c commit ec013e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stringer.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ func main() {
g.Printf("\n")
g.Printf("import (\n")
g.Printf("\t\"fmt\"\n")
g.Printf("\t\"strings\"\n")
if !*caseSensitive {
g.Printf("\t\"strings\"\n")
}
if *sql {
g.Printf("\t\"database/sql/driver\"\n")
}
Expand Down

0 comments on commit ec013e8

Please sign in to comment.