*: fix 'ineffassign' issues

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee
2017-10-03 02:14:22 -07:00
parent 72fbe0576d
commit 0199bdc266
19 changed files with 38 additions and 23 deletions

View File

@@ -110,7 +110,7 @@ func etcdFlagUsages(flagSet *pflag.FlagSet) string {
if len(flag.Deprecated) > 0 {
return
}
format := ""
var format string
if len(flag.Shorthand) > 0 {
format = " -%s, --%s"
} else {