Merge "Change if/else to a ternary operator"
This commit is contained in:
commit
ebf821f643
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue