Cleanup some incorrect return annotations
[lhc/web/wiklou.git] / includes / cache / FileCacheBase.php
index 360420b..6d5f8c3 100644 (file)
@@ -154,15 +154,9 @@ abstract class FileCacheBase {
        /**
         * Save and compress text to the cache
         * @param string $text
-        * @return string Compressed text
+        * @return string|false Compressed text
         */
        public function saveText( $text ) {
-               global $wgUseFileCache;
-
-               if ( !$wgUseFileCache ) {
-                       return false;
-               }
-
                if ( $this->useGzip() ) {
                        $text = gzencode( $text );
                }