chore: upgrade golangci-lint to 1.51.1

This commit is contained in:
Oleg Lobanov committed 2023-02-16 09:19:44 +01:00
1 parent fa95299df4
commit 10d628aecc
11 files changed
+307 -719

No files matched your search

+1
View File
@@ -181,6 +181,7 @@ user created with the credentials from options "username" and "password".`,
defer listener.Close()
log.Println("Listening on", listener.Addr().String())
//nolint: gosec
if err := http.Serve(listener, handler); err != nil {
log.Fatal(err)
}
+1 -1
View File
@@ -53,7 +53,7 @@ func printUsers(usrs []*users.User) {
}
func parseUsernameOrID(arg string) (username string, id uint) {
id64, err := strconv.ParseUint(arg, 10, 64) //nolint:gomnd
id64, err := strconv.ParseUint(arg, 10, 64)
if err != nil {
return arg, 0
}