From 02e3ce636acbeda50568baec9cbb9813d2d99060 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 17 Dec 2011 23:14:39 +0000 Subject: [PATCH] Kill some useless code in r106514 --- includes/api/ApiQueryRevisions.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 33ffaa131a..6d1fe3fe8e 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -414,11 +414,7 @@ class ApiQueryRevisions extends ApiQueryBase { } if ( $this->fld_sha1 ) { - if ( !is_null( $revision->getSha1() ) ) { - $vals['sha1'] = $revision->getSha1(); - } else { - $vals['sha1'] = ''; - } + $vals['sha1'] = $revision->getSha1(); } if ( $this->fld_comment || $this->fld_parsedcomment ) { -- 2.20.1