From: Aaron Schulz Date: Sat, 17 Dec 2011 23:14:39 +0000 (+0000) Subject: Kill some useless code in r106514 X-Git-Tag: 1.31.0-rc.0~25916 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=02e3ce636acbeda50568baec9cbb9813d2d99060;p=lhc%2Fweb%2Fwiklou.git Kill some useless code in r106514 --- 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 ) {