Change to explicit comparison with MagicCookieValue

This commit is contained in:
Chris Bednarski 2016-10-13 18:14:22 -07:00
parent 3935703286
commit 010fa977cf
1 changed files with 1 additions and 1 deletions

View File

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