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>
This commit is contained in:
Sebastiaan van Stijn 2022-09-02 23:55:51 +02:00
parent 7cec7101c4
commit b508b0fc31
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 1 additions and 1 deletions

View File

@ -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)")
} }
} }