Skip to content

Commit

Permalink
cmd/record: handle unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
joshi4 committed Feb 23, 2024
1 parent 4af9656 commit b21d487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var recordCmd = &cobra.Command{
Long: `Record creates a sub shell that records each terminal command and helps you create a runbook.
Type 'exit' to exit the sub shell and view the runbook.`,
PreRun: func(cmd *cobra.Command, args []string) {
PreRun: func(_ *cobra.Command, _ []string) {
checker := shell.NewSetupChecker()
if err := checker.CheckSetup(); err != nil {
display.Error(err)
Expand All @@ -44,7 +44,7 @@ var recordCmd = &cobra.Command{

var programOutput = termenv.NewOutput(os.Stdout, termenv.WithColorCache(true))

func runRecordCmd(cmd *cobra.Command, args []string) {
func runRecordCmd(_ *cobra.Command, _ []string) {
cl, err := client.New()
if err != nil && errors.Is(err, client.ErrInvalidClient) {
display.Error(errors.New("You must be logged in to record a runbook. Please run `savvy login`"))
Expand Down

0 comments on commit b21d487

Please sign in to comment.