mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 08:40:01 +00:00
Lint: "Fix" two linter errors
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2f1d8ff76d
commit
d1acb85297
2 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,7 @@ func routeActorCounterSetValue(w http.ResponseWriter, r *http.Request) {
|
||||||
value int64
|
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)
|
http.Error(w, errors.Wrap(err, "parsing value").Error(), http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
func registerSwaggerRoute(route plugins.HTTPRouteRegistrationArgs) error {
|
||||||
fullPath := strings.Join([]string{
|
fullPath := strings.Join([]string{
|
||||||
"",
|
"",
|
||||||
|
|
Loading…
Reference in a new issue