From 34e75c3c5f304443299e5bede84ab15c77f46ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Fri, 30 Nov 2018 09:37:39 -0800 Subject: [PATCH] GK failing log message Summary: When a plugin has no gatekeeper defined, an incorrect warning was logged, saying that if fails the gatekeeper "undeinfed" Reviewed By: jknoxville Differential Revision: D13275803 fbshipit-source-id: 9ae5ed55031cc6a636c7c5ffa23bdd059a8ed35f --- src/dispatcher/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatcher/plugins.js b/src/dispatcher/plugins.js index 6ef933df0..ebf0516ef 100644 --- a/src/dispatcher/plugins.js +++ b/src/dispatcher/plugins.js @@ -82,7 +82,7 @@ export function getDynamicPlugins() { export function checkGK(plugin: PluginDefinition): boolean { const result = plugin.gatekeeper && !GK.get(plugin.gatekeeper); - if (!result) { + if (plugin.gatekeeper && !result) { console.warn( 'Plugin %s will be ignored as user is not part of the gatekeeper "%s".', plugin.name,