Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed operationState variable
  • Loading branch information
Manuelvaas committed Feb 11, 2026
commit a2503d502bc032377ea0ee6a24dc69d84df9c8b9
3 changes: 1 addition & 2 deletions internal/cmd/beta/logs/access_token/delete/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
return fmt.Errorf("delete access token: %w", err)
}

operationState := "Deleted"
params.Printer.Outputf("%s access token %q\n", operationState, accessTokenLabel)
params.Printer.Outputf("Deleted access token %q\n", accessTokenLabel)
return nil
},
}
Expand Down
3 changes: 1 addition & 2 deletions internal/cmd/beta/logs/access_token/delete_all/delete_all.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
return fmt.Errorf("delete access token: %w", err)
}

operationState := "Deleted"
params.Printer.Outputf("%s %d access token(s)\n", operationState, len(*items.Tokens))
params.Printer.Outputf("Deleted %d access token(s)\n", len(*items.Tokens))
return nil
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
return fmt.Errorf("delete access token: %w", err)
}

operationState := "Deleted"
params.Printer.Outputf("%s %d expired access token(s)\n", operationState, len(*items.Tokens))
params.Printer.Outputf("Deleted %d expired access token(s)\n", len(*items.Tokens))
return nil
},
}
Expand Down
6 changes: 1 addition & 5 deletions internal/cmd/beta/logs/access_token/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
return fmt.Errorf("update access token: %w", err)
}

operationState := "Updated"
if model.Async {
operationState = "Triggered update of"
}
params.Printer.Outputf("%s access token %q\n", operationState, accessTokenLabel)
params.Printer.Outputf("Updated access token %q\n", accessTokenLabel)
return nil
},
}
Expand Down