Simplified assignment operation

Concatenate string without the help of fmt.Sprintf.
This commit is contained in:
Christian Muehlhaeuser 2019-07-19 06:10:02 +02:00
parent 2d7544ebde
commit b0b1a62e78
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E

View file

@ -318,7 +318,7 @@ func zshCompGenFlagEntryExtras(f *pflag.Flag) string {
case BashCompFilenameExt: case BashCompFilenameExt:
extras = ":filename:_files" extras = ":filename:_files"
for _, pattern := range values { for _, pattern := range values {
extras = extras + fmt.Sprintf(` -g "%s"`, pattern) extras += ` -g "` + pattern + `"`
} }
} }
} }