Lint: "Fix" two linter errors

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-08-28 17:58:31 +02:00
parent 2f1d8ff76d
commit d1acb85297
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
2 changed files with 2 additions and 1 deletions

View file

@ -132,7 +132,7 @@ func routeActorCounterSetValue(w http.ResponseWriter, r *http.Request) {
value int64
)
if value, err = strconv.ParseInt(r.FormValue("value"), 10, 64); err != nil {
if value, err = strconv.ParseInt(r.FormValue("value"), 10, 64); err != nil { //nolint:gomnd // Those numbers are static enough
http.Error(w, errors.Wrap(err, "parsing value").Error(), http.StatusBadRequest)
return
}

View file

@ -54,6 +54,7 @@ func handleSwaggerRequest(w http.ResponseWriter, r *http.Request) {
}
}
//nolint:gocyclo // Makes no sense to split just to spare a little complexity
func registerSwaggerRoute(route plugins.HTTPRouteRegistrationArgs) error {
fullPath := strings.Join([]string{
"",