Fix return in Preprocessor::cacheSetTree
authorUmherirrender <umherirrender_de.wp@web.de>
Sat, 9 Sep 2017 20:54:39 +0000 (22:54 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Sat, 9 Sep 2017 20:54:39 +0000 (22:54 +0200)
Function would not return always a bool,
caller does not expected a value, so remove it.

Change-Id: I506355fbd1bd304a6f3a161ac4c9d0bc765fda4a

includes/parser/Preprocessor.php

index 24474d5..03726ca 100644 (file)
@@ -69,7 +69,7 @@ abstract class Preprocessor {
                $length = strlen( $text );
                $threshold = $config->get( 'PreprocessorCacheThreshold' );
                if ( $threshold === false || $length < $threshold || $length > 1e6 ) {
-                       return false;
+                       return;
                }
 
                $cache = ObjectCache::getLocalClusterInstance();