Merge "Change if/else to a ternary operator"

This commit is contained in:
Hashar 2012-05-29 18:59:38 +00:00 committed by Gerrit Code Review
commit ebf821f643

View file

@ -530,11 +530,7 @@ class WikiPage extends Page {
}
wfProfileOut( __METHOD__ );
if ( $row ) {
return Revision::newFromRow( $row );
} else {
return null;
}
return $row ? Revision::newFromRow( $row ) : null;
}
/**