[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
parent 4f71a75df1
commit b98acb9409
3 changed files with 3 additions and 13 deletions

View file

@ -164,10 +164,7 @@ 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.');
}
} }
/** /**

View file

@ -117,11 +117,7 @@ class db
return true; return true;
} }
} }
else return $this->locked;
{
return $this->locked;
}
} }
/** /**

View file

@ -105,10 +105,7 @@ 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;