Skip to content

Commit bc5cffd

Browse files
j1n-o9rrubenhoenle
authored andcommitted
fixed ineffassign
1 parent 66c4402 commit bc5cffd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • internal/cmd/load-balancer/observability-credentials/list

internal/cmd/load-balancer/observability-credentials/list/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
9696
if err != nil {
9797
return fmt.Errorf("filter credentials: %w", err)
9898
}
99-
if filteredCredentials == nil { // lbUtils.FilterCredentials can return nil with no error, if credentials is an empty slice and filterOp is not 0 (if either the --used or the --unused is set)
100-
filteredCredentials = credentials
99+
if filteredCredentials != nil { // lbUtils.FilterCredentials can return nil with no error, if credentials is an empty slice and filterOp is not 0 (if either the --used or the --unused is set)
100+
credentials = filteredCredentials
101101
}
102102

103103
// Truncate output

0 commit comments

Comments
 (0)