1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-02 23:07:39 +02:00

[ticket/11515] Refactoring the patch.

Removing else conditions.

PHPBB3-11515
This commit is contained in:
Vishal Pandey
2017-03-14 17:19:41 +05:30
committed by Marc Alexander
parent cf12223b25
commit 7d4909dc06
3 changed files with 3 additions and 13 deletions

View File

@@ -164,11 +164,8 @@ class config implements \ArrayAccess, \IteratorAggregate, \Countable
{ {
return true; 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.');
} }
}
/** /**
* Increments an integer configuration value. * Increments an integer configuration value.

View File

@@ -117,12 +117,8 @@ class db
return true; return true;
} }
} }
else
{
return $this->locked; return $this->locked;
} }
}
/** /**
* Does this process own the lock? * Does this process own the lock?

View File

@@ -105,11 +105,8 @@ class flock
{ {
return (bool) $this->lock_fp; 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; return (bool) $this->lock_fp;
} }