aboutsummaryrefslogtreecommitdiff
path: root/flag_test.go
diff options
context:
space:
mode:
authorEric Paris <[email protected]>2017-01-19 16:32:39 -0500
committerGitHub <[email protected]>2017-01-19 16:32:39 -0500
commita232f6d9f87afaaa08bafaff5da685f974b83313 (patch)
treeaed1d391665cead5db48aeac91a2719c22674b40 /flag_test.go
parent51268031d79952516489a9f8aa34e9709b98d946 (diff)
parent86d35458626e9ddb67bad7aa864abb61f99435dc (diff)
Merge pull request #102 from bogem/redundant
Clean up code
Diffstat (limited to 'flag_test.go')
-rw-r--r--flag_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/flag_test.go b/flag_test.go
index ad050b3..b83a0ed 100644
--- a/flag_test.go
+++ b/flag_test.go
@@ -462,10 +462,10 @@ func TestFlagSetParse(t *testing.T) {
func TestChangedHelper(t *testing.T) {
f := NewFlagSet("changedtest", ContinueOnError)
- _ = f.Bool("changed", false, "changed bool")
- _ = f.Bool("settrue", true, "true to true")
- _ = f.Bool("setfalse", false, "false to false")
- _ = f.Bool("unchanged", false, "unchanged bool")
+ f.Bool("changed", false, "changed bool")
+ f.Bool("settrue", true, "true to true")
+ f.Bool("setfalse", false, "false to false")
+ f.Bool("unchanged", false, "unchanged bool")
args := []string{"--changed", "--settrue", "--setfalse=false"}
if err := f.Parse(args); err != nil {