From 4112dff45a2d784c727ca17d229c4f85fc9126f5 Mon Sep 17 00:00:00 2001 From: EdwardDowling Date: Fri, 23 Feb 2024 16:19:12 +0000 Subject: [PATCH] Remove redundant err check --- tool/tctl/common/resource_command.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tool/tctl/common/resource_command.go b/tool/tctl/common/resource_command.go index 45fb80d30e432..42290bd18d264 100644 --- a/tool/tctl/common/resource_command.go +++ b/tool/tctl/common/resource_command.go @@ -2758,9 +2758,7 @@ func (rc *ResourceCommand) createAuditQuery(ctx context.Context, client auth.Cli } if err = client.SecReportsClient().UpsertSecurityAuditQuery(ctx, in); err != nil { - if err != nil { - return trace.Wrap(err) - } + return trace.Wrap(err) } return nil }