Fix return in HttpStatus::header

No caller expected a bool as return, which is not given in any case,
so remove it

Change-Id: Iaf994342e9f783108c767bb2de13af7345247805
This commit is contained in:
Umherirrender 2017-09-10 01:44:29 +02:00
parent e754f6803f
commit d19a4dd230

View file

@ -98,7 +98,7 @@ class HttpStatus {
$message = self::getMessage( $code );
if ( $message === null ) {
trigger_error( "Unknown HTTP status code $code", E_USER_WARNING );
return false;
return;
}
MediaWiki\HeaderCallback::warnIfHeadersSent();