Skip to content

Commit

Permalink
fix(go1.21): fix lint and compile
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienaury authored Aug 22, 2023
1 parent d09d9f4 commit c9a8320
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ properties:
"ifshort",
"nosnakecase",
"exhaustivestruct",
"depguard",
]
snapshot: false # If true, do not upload release when publish target is used
dockerfiles: # List of Dockerfiles to build, defined by a map of {key=Dockerfile name ; value=path to build context}, the image name will be determined by the extension of the Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion cmd/webserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {
r.HandleFunc("/version", VersionHandler)
}

func VersionHandler(w http.ResponseWriter, r *http.Request) {
func VersionHandler(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
fmt.Printf("%v %v (commit=%v date=%v by=%v)\n", name, version, commit, buildDate, builtBy)
}

0 comments on commit c9a8320

Please sign in to comment.