Skip to content

Commit

Permalink
Address golangci-lint false positives on macOS (#39235)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingllama authored Mar 12, 2024
1 parent a95a617 commit f06da61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/srv/usermgmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (

// NewHostUsers initialize a new HostUsers object
func NewHostUsers(ctx context.Context, storage *local.PresenceService, uuid string) HostUsers {
//nolint:staticcheck // SA4023. False positive on macOS.
backend, err := newHostUsersBackend()
switch {
case trace.IsNotImplemented(err):
Expand All @@ -58,6 +59,7 @@ func NewHostUsers(ctx context.Context, storage *local.PresenceService, uuid stri
}

func NewHostSudoers(uuid string) HostSudoers {
//nolint:staticcheck // SA4023. False positive on macOS.
backend, err := newHostSudoersBackend(uuid)
switch {
case trace.IsNotImplemented(err):
Expand Down

0 comments on commit f06da61

Please sign in to comment.