mirror of https://github.com/docker/cli.git
linting: ST1017: don't use Yoda conditions (stylecheck)
opts/envfile_test.go:157:5: ST1017: don't use Yoda conditions (stylecheck)
if 1 != len(variables) {
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit b508b0fc31
)
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
parent
8dc18ce7d0
commit
43c1e3d5cb
|
@ -154,7 +154,7 @@ HOME
|
||||||
t.Fatal("the HOME variable is not properly imported as the first variable (but it is the only one to import)")
|
t.Fatal("the HOME variable is not properly imported as the first variable (but it is the only one to import)")
|
||||||
}
|
}
|
||||||
|
|
||||||
if 1 != len(variables) {
|
if len(variables) != 1 {
|
||||||
t.Fatal("exactly one variable is imported (as the other one is not set at all)")
|
t.Fatal("exactly one variable is imported (as the other one is not set at all)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue