Change to explicit comparison with MagicCookieValue
This commit is contained in:
parent
3935703286
commit
010fa977cf
|
@ -49,7 +49,7 @@ func decodeConfig(r io.Reader, c *config) error {
|
|||
func (c *config) Discover() error {
|
||||
// If we are already inside a plugin process we should not need to
|
||||
// discover anything.
|
||||
if os.Getenv(plugin.MagicCookieKey) != "" {
|
||||
if os.Getenv(plugin.MagicCookieKey) == plugin.MagicCookieValue {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue