Skip to content

Commit

Permalink
Consistent variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuoza committed Nov 25, 2020
1 parent fe70bd7 commit 660087b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/switchbot/command/press.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ type pressCfg struct {

// Run executes parse args and pass args to RunContext.
func (c *PressCommand) Run(args []string) int {
arg, parseStatus := c.parseArgs(args)
cfg, parseStatus := c.parseArgs(args)

if parseStatus != 0 {
return parseStatus
}

if err := c.runWithRetry(context.Background(), arg); err != nil {
if err := c.runWithRetry(context.Background(), cfg); err != nil {
msg := fmt.Sprintf("Failed to press SwitchBot: %s", err.Error())
c.UI.Error(msg)
return 1
Expand Down

0 comments on commit 660087b

Please sign in to comment.