Skip to content

Commit

Permalink
Merge pull request #1862 from yassinebenaid/adjust-code-style
Browse files Browse the repository at this point in the history
Adjust code style
  • Loading branch information
dearchap authored Jan 28, 2024
2 parents 2b85f72 + 923f1ef commit 00e6067
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions flag_bool_with_inverse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

var (
bothEnvFlagsAreSetError = fmt.Errorf("cannot set both flags `--env` and `--no-env`")
errBothEnvFlagsAreSet = fmt.Errorf("cannot set both flags `--env` and `--no-env`")
)

type boolWithInverseTestCase struct {
Expand Down Expand Up @@ -98,7 +98,7 @@ func TestBoolWithInverseBasic(t *testing.T) {
},
{
args: []string{"--env", "--no-env"},
err: bothEnvFlagsAreSetError,
err: errBothEnvFlagsAreSet,
},
}

Expand Down Expand Up @@ -146,7 +146,7 @@ func TestBoolWithInverseAction(t *testing.T) {
},
{
args: []string{"--env", "--no-env"},
err: bothEnvFlagsAreSetError,
err: errBothEnvFlagsAreSet,
},
}

Expand Down Expand Up @@ -184,7 +184,7 @@ func TestBoolWithInverseAlias(t *testing.T) {
},
{
args: []string{"--do-env", "--no-do-env"},
err: bothEnvFlagsAreSetError,
err: errBothEnvFlagsAreSet,
},
}

Expand Down Expand Up @@ -232,7 +232,7 @@ func TestBoolWithInverseEnvVars(t *testing.T) {
value: false,
},
{
err: bothEnvFlagsAreSetError,
err: errBothEnvFlagsAreSet,
envVars: map[string]string{
"ENV": "true",
"NO-ENV": "true",
Expand Down Expand Up @@ -313,7 +313,7 @@ func TestBoolWithInverseRequired(t *testing.T) {
},
{
args: []string{"--env", "--no-env"},
err: bothEnvFlagsAreSetError,
err: errBothEnvFlagsAreSet,
},
}

Expand Down
4 changes: 2 additions & 2 deletions flag_mutex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ func TestFlagMutuallyExclusiveFlags(t *testing.T) {
MutuallyExclusiveFlags: []MutuallyExclusiveFlags{
{
Flags: [][]Flag{
[]Flag{
{
&IntFlag{
Name: "i",
},
&StringFlag{
Name: "s",
},
},
[]Flag{
{
&IntFlag{
Name: "t",
Aliases: []string{"ai"},
Expand Down

0 comments on commit 00e6067

Please sign in to comment.