From 010fa977cf8a0885297407ec05def33c986ec398 Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Thu, 13 Oct 2016 18:14:22 -0700 Subject: [PATCH] Change to explicit comparison with MagicCookieValue --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 98f65f070..801d73437 100644 --- a/config.go +++ b/config.go @@ -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 }