mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11515] Refactoring the patch.
Removing else conditions. PHPBB3-11515
This commit is contained in:
parent
4f71a75df1
commit
b98acb9409
3 changed files with 3 additions and 13 deletions
|
@ -164,11 +164,8 @@ class config implements \ArrayAccess, \IteratorAggregate, \Countable
|
|||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Increments an integer configuration value.
|
||||
|
|
|
@ -117,12 +117,8 @@ class db
|
|||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
return $this->locked;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Does this process own the lock?
|
||||
|
|
|
@ -105,11 +105,8 @@ class flock
|
|||
{
|
||||
return (bool) $this->lock_fp;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.');
|
||||
}
|
||||
}
|
||||
|
||||
return (bool) $this->lock_fp;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue