chore: fix golangci-lint errors

This commit is contained in:
Oleg Lobanov committed 2024-04-01 18:24:06 +02:00
1 parent d194d71293
commit ae0af1f996
54 files changed
+452 -475

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ const MethodNoAuth settings.AuthMethod = "noauth"
type NoAuth struct{}
// Auth uses authenticates user 1.
func (a NoAuth) Auth(r *http.Request, usr users.Store, stg *settings.Settings, srv *settings.Server) (*users.User, error) {
func (a NoAuth) Auth(_ *http.Request, usr users.Store, _ *settings.Settings, srv *settings.Server) (*users.User, error) {
return usr.Get(srv.Root, uint(1))
}