os: fix linter issue

This commit is contained in:
Dawid Dziurla 2023-03-29 15:55:53 +02:00 committed by GitHub
parent cd11c3e131
commit 0066c1c76c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ func (c *OSCommand) ExecutableFromStringContext(ctx context.Context, commandStr
}
func (c *OSCommand) NewCommandStringWithShell(commandStr string) string {
quotedCommand := ""
var quotedCommand string
// Windows does not seem to like quotes around the command
if c.Platform.os == "windows" {
quotedCommand = strings.NewReplacer(