Don't throw any exception

refs #9247
This commit is contained in:
Alexander A. Klimov 2015-06-05 10:23:17 +02:00
parent 602f0cf755
commit cbc731034a
1 changed files with 1 additions and 6 deletions

View File

@ -3,8 +3,6 @@
namespace Icinga\Application;
use Icinga\Exception\IcingaException;
class Version
{
/**
@ -25,10 +23,7 @@ class Version
'/(?<!.)\s*(?P<gitCommitID>\w+)(?:\s*\(.*?(?:(?<=[\(,])\s*tag\s*:\s*v(?P<appVersion>.+?)\s*(?=[\),]).*?)?\))?\s*(?P<gitCommitDate>\S+)/ms',
$appVersion,
$matches
))) {
throw new IcingaException('Failed at preg_match()');
}
if ($res === 0) {
)) || $res === 0) {
return false;
}