From 660087b1ded27448ad7f16b065688d38123b347d Mon Sep 17 00:00:00 2001 From: Yasuharu Ozaki Date: Wed, 25 Nov 2020 23:29:43 +0900 Subject: [PATCH] Consistent variable name --- cmd/switchbot/command/press.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/switchbot/command/press.go b/cmd/switchbot/command/press.go index 456cc84..036633f 100644 --- a/cmd/switchbot/command/press.go +++ b/cmd/switchbot/command/press.go @@ -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