diff options
Diffstat (limited to 'bool_test.go')
| -rw-r--r-- | bool_test.go | 3 |
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 |
