Skip to content

Commit

Permalink
Remove redundant err check
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardDowling committed Feb 27, 2024
1 parent cbdc08c commit 4112dff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tool/tctl/common/resource_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4112dff

Please sign in to comment.