chore: update linter (#1367)
This commit is contained in:
parent
2c0a8ff689
commit
52ad9d72e8
108 changed files with 239 additions and 217 deletions
|
@ -87,7 +87,7 @@ func (e *EnvTest) IsLiveTest() bool {
|
|||
|
||||
liveTest = liveTest && len(e.values) == len(e.keys)
|
||||
|
||||
if liveTest && len(e.domainKey) > 0 && len(e.domain) == 0 {
|
||||
if liveTest && e.domainKey != "" && e.domain == "" {
|
||||
return false
|
||||
}
|
||||
|
||||
|
@ -129,7 +129,7 @@ func (e *EnvTest) Apply(envVars map[string]string) {
|
|||
panic(fmt.Sprintf("Unauthorized action, the env var %s is not managed.", key))
|
||||
}
|
||||
|
||||
if len(value) == 0 {
|
||||
if value == "" {
|
||||
os.Unsetenv(key)
|
||||
} else {
|
||||
os.Setenv(key, value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue