From 5ebcec3134ccc5b63b1e287577a2a52f3909e2de Mon Sep 17 00:00:00 2001 From: noys Date: Tue, 3 Sep 2024 16:06:51 +0300 Subject: [PATCH] fix linter :rotating_light: --- io/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/cmd.go b/io/cmd.go index 39b227a..2f2d85f 100644 --- a/io/cmd.go +++ b/io/cmd.go @@ -243,7 +243,7 @@ func (config *Command) GetCmd() (cmd *exec.Cmd) { if config.CmdName != "" { cmdStr = append(cmdStr, config.CmdName) } - if config.CmdArgs != nil && len(config.CmdArgs) > 0 { + if len(config.CmdArgs) > 0 { cmdStr = append(cmdStr, config.CmdArgs...) } cmd = exec.Command(config.Executable, cmdStr...)