Skip to content

Commit

Permalink
Address golangci-lint false positives on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
codingllama authored and github-actions committed Mar 11, 2024
1 parent 4906f7f commit 33d81f5
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 33d81f5

Please sign in to comment.