chore: upgrade golangci-lint to v1.46.0 (#1373)

This commit is contained in:
Colin Adler
2022-05-10 16:04:23 -05:00
committed by GitHub
parent e0a7aec228
commit 97a95f1377
18 changed files with 32 additions and 84 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ package coderd
import (
"context"
"fmt"
"net/http"
"github.com/google/uuid"
@@ -29,7 +28,7 @@ func (api *api) putMemberRoles(rw http.ResponseWriter, r *http.Request) {
// the selected organization. Until then, allow anarchy
if apiKey.UserID != user.ID {
httpapi.Write(rw, http.StatusUnauthorized, httpapi.Response{
Message: fmt.Sprintf("modifying other users is not supported at this time"),
Message: "modifying other users is not supported at this time",
})
return
}