Fix context.IsSet()

Accidentally mangled the implementation when merging master into the
`v2` branch resulting in a dropped test.
This commit is contained in:
Jesse Szwedko
2017-02-14 20:30:04 -08:00
parent 04b2f4ff79
commit 9073334ecd
2 changed files with 64 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ func (c *Context) IsSet(name string) bool {
for _, envVar := range envVarValues.Interface().([]string) {
envVar = strings.TrimSpace(envVar)
if envVal := os.Getenv(envVar); envVal != "" {
continue
return true
}
}