Avoid 'finally' clause in AbuseFilterParser::parseDetailed

Bug: T270514
Change-Id: I1e3e6675ec8c3bfd435797cb044b85b3d2a34450
This commit is contained in:
Daimona Eaytoy 2020-12-18 20:32:53 +01:00
parent 7c1d1c6d7d
commit 5d4b2fde27

View file

@ -407,9 +407,8 @@ class AbuseFilterParser extends AFPTransitionBase {
$res = $this->parse( $code );
} catch ( AFPException $excep ) {
$res = false;
} finally {
return new ParserStatus( $res, $this->fromCache, $excep, $this->warnings );
}
return new ParserStatus( $res, $this->fromCache, $excep, $this->warnings );
}
/**