From 81f6d1582862df28c75f8e3838e7273a876d5327 Mon Sep 17 00:00:00 2001 From: Yahnis Elsts Date: Sat, 9 Jan 2016 18:20:34 +0200 Subject: [PATCH] Remove duplicate condition. The triggerError method already checks for debugMode, there's no need to do it before. --- plugin-update-checker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-update-checker.php b/plugin-update-checker.php index 41b5fe3..fe9140c 100644 --- a/plugin-update-checker.php +++ b/plugin-update-checker.php @@ -268,7 +268,7 @@ class PluginUpdateChecker_2_3 { $pluginInfo->filename = $this->pluginFile; $pluginInfo->slug = $this->slug; } - } else if ( $this->debugMode ) { + } else { $this->triggerError( sprintf('The URL %s does not point to a valid plugin metadata file. ', $url) . $status->get_error_message(),