From f06da616f8c6c4e7c3e7db0dd3251b0d801cf246 Mon Sep 17 00:00:00 2001 From: Alan Parra Date: Tue, 12 Mar 2024 12:55:35 -0300 Subject: [PATCH] Address golangci-lint false positives on macOS (#39235) --- lib/srv/usermgmt.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/srv/usermgmt.go b/lib/srv/usermgmt.go index 4a4e0b1f0f7be..7b3969077fe91 100644 --- a/lib/srv/usermgmt.go +++ b/lib/srv/usermgmt.go @@ -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): @@ -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):