Skip to content

Commit

Permalink
Improvement - Clean code applied from linter's advices
Browse files Browse the repository at this point in the history
  • Loading branch information
antonyho committed Nov 28, 2023
1 parent 61ea7e9 commit ee09171
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/db-generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func main() {
}
}

func helpFunc(s string) error {
func helpFunc(_ string) error {
flag.Usage()
os.Exit(0)

Expand Down
1 change: 1 addition & 0 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"unicode/utf8"

// SQLite3 driver for the engine, the engine uses SQlite3.
_ "github.com/mattn/go-sqlite3"
)

Expand Down
1 change: 1 addition & 0 deletions internal/db/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"unicode/utf8"

"github.com/antonyho/go-cangjie/db/models"
// SQLite3 driver for the engine, the engine uses SQlite3.
_ "github.com/mattn/go-sqlite3"
)

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func main() {
fmt.Println(resultStrings)
}

func helpFunc(s string) error {
func helpFunc(_ string) error {
flag.Usage()
os.Exit(0)

Expand Down

0 comments on commit ee09171

Please sign in to comment.