From b0b1a62e78fe79024bb1db620c70f81ba161297e Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 19 Jul 2019 06:10:02 +0200 Subject: [PATCH] Simplified assignment operation Concatenate string without the help of fmt.Sprintf. --- zsh_completions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh_completions.go b/zsh_completions.go index 12755482..9588afdc 100644 --- a/zsh_completions.go +++ b/zsh_completions.go @@ -318,7 +318,7 @@ func zshCompGenFlagEntryExtras(f *pflag.Flag) string { case BashCompFilenameExt: extras = ":filename:_files" for _, pattern := range values { - extras = extras + fmt.Sprintf(` -g "%s"`, pattern) + extras += ` -g "` + pattern + `"` } } }