Remove duplicate condition.

The triggerError method already checks for debugMode, there's no need to do it before.
This commit is contained in:
Yahnis Elsts 2016-01-09 18:20:34 +02:00
parent d78400e919
commit 81f6d15828
1 changed files with 1 additions and 1 deletions

View File

@ -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(),