Simplified code. Removed not needed if-else
authorjeroendedauw <jeroendedauw@gmail.com>
Fri, 25 Jan 2013 15:46:24 +0000 (16:46 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 25 Jan 2013 20:07:27 +0000 (20:07 +0000)
Change-Id: I9660f543deefb5154a03535b668ee68eb3394e75

includes/parser/ParserOutput.php

index 28d07f1..5dddb00 100644 (file)
@@ -457,13 +457,7 @@ class ParserOutput extends CacheTime {
 
                $linksUpdate = new LinksUpdate( $title, $this, $recursive );
 
-               if ( $this->mSecondaryDataUpdates === array() ) {
-                       return array( $linksUpdate );
-               } else {
-                       $updates = array_merge( $this->mSecondaryDataUpdates, array( $linksUpdate ) );
-               }
-
-               return $updates;
+               return array_merge( $this->mSecondaryDataUpdates, array( $linksUpdate ) );
         }
 
 }