mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
Simplified assignment operation
Concatenate string without the help of fmt.Sprintf.
This commit is contained in:
parent
2d7544ebde
commit
b0b1a62e78
1 changed files with 1 additions and 1 deletions
|
@ -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 + `"`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue