From c19ec2d8f9aef48cf57d49da8b387e7ba5b31215 Mon Sep 17 00:00:00 2001 From: jeroendedauw Date: Fri, 25 Jan 2013 16:46:24 +0100 Subject: [PATCH] Simplified code. Removed not needed if-else Change-Id: I9660f543deefb5154a03535b668ee68eb3394e75 --- includes/parser/ParserOutput.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 28d07f1479..5dddb00cb1 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -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 ) ); } } -- 2.20.1