Skip to content

Commit

Permalink
shorter code for isSupported
Browse files Browse the repository at this point in the history
  • Loading branch information
hans2103 committed Jun 1, 2014
1 parent 9f09692 commit bc84891
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions libraries/joomla/cache/storage/redis.php
Expand Up @@ -342,12 +342,7 @@ public function clean($group, $mode = null)
*/
public static function isSupported()
{
if (class_exists('Redis') != true)
{
return false;
}

return true;
return class_exists('Redis');
}

/**
Expand Down

0 comments on commit bc84891

Please sign in to comment.