mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-14 04:30:29 +01:00
[ticket/11515] Refactoring the patch.
Removing else conditions. PHPBB3-11515
This commit is contained in:
parent
cf12223b25
commit
7d4909dc06
@ -164,10 +164,7 @@ class config implements \ArrayAccess, \IteratorAggregate, \Countable
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.');
|
||||
}
|
||||
throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -117,11 +117,7 @@ class db
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
return $this->locked;
|
||||
}
|
||||
return $this->locked;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -105,10 +105,7 @@ class flock
|
||||
{
|
||||
return (bool) $this->lock_fp;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.');
|
||||
}
|
||||
throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.');
|
||||
}
|
||||
|
||||
return (bool) $this->lock_fp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user