aboutsummaryrefslogtreecommitdiff
path: root/bool_test.go
diff options
context:
space:
mode:
authorbogem <[email protected]>2016-09-24 23:41:08 +0200
committerbogem <[email protected]>2016-09-25 00:24:05 +0200
commit92abf1943761d39805d58c36456e757becf78b92 (patch)
tree4320ce2c9a98a978416b0d368619244ddaaeec69 /bool_test.go
parentc7e63cf4530bcd3ba943729cee0efeff2ebea63f (diff)
Optimize fmt statements
Diffstat (limited to 'bool_test.go')
-rw-r--r--bool_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/bool_test.go b/bool_test.go
index 3e38a0f..a4319e7 100644
--- a/bool_test.go
+++ b/bool_test.go
@@ -6,7 +6,6 @@ package pflag
import (
"bytes"
- "fmt"
"strconv"
"testing"
)
@@ -48,7 +47,7 @@ func (v *triStateValue) String() string {
if *v == triStateMaybe {
return strTriStateMaybe
}
- return fmt.Sprintf("%v", bool(*v == triStateTrue))
+ return strconv.FormatBool(*v == triStateTrue)
}
// The type of the flag as required by the pflag.Value interface