Fix errors introduced with golangci-lint 1.41.1

This commit is contained in:
Quentin McGaw (desktop)
2021-06-20 16:39:38 +00:00
parent 2c77b73ebc
commit 266596af68
9 changed files with 20 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ func parseServerName(serverName string) (number uint16, err error) {
}
idString := serverName[i+1:]
idUint64, err := strconv.ParseUint(idString, 10, 16)
idUint64, err := strconv.ParseUint(idString, 10, 16) //nolint:gomnd
if err != nil {
return 0, fmt.Errorf("%w: %s", ErrInvalidIDInServerName, serverName)
}