summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Wallgren <[email protected]>2015-11-11 14:08:28 +0100
committerFredrik Wallgren <[email protected]>2015-11-11 14:08:28 +0100
commitd6a447ed7c63971839fc22d3d0f1c623aa556d2f (patch)
treec42d33dbae306a0b2844c0bafff5b510634b3e7d
parenta49bba8533235e33cb82893851edcbc2805a4b77 (diff)
Fix lint warning
-rw-r--r--usage.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/usage.go b/usage.go
index 13134d0..82962c8 100644
--- a/usage.go
+++ b/usage.go
@@ -103,7 +103,6 @@ func (p *Parser) WriteHelp(w io.Writer) {
func synopsis(spec *spec, form string) string {
if spec.dest.Kind() == reflect.Bool {
return form
- } else {
- return form + " " + strings.ToUpper(spec.long)
}
+ return form + " " + strings.ToUpper(spec.long)
}