Simplify Block::getBy and Block::getByName
authorThalia <thalia.e.chan@googlemail.com>
Thu, 21 Mar 2019 22:23:31 +0000 (22:23 +0000)
committerThalia <thalia.e.chan@googlemail.com>
Fri, 22 Mar 2019 19:19:41 +0000 (19:19 +0000)
commit8b77749599823bb1294f0dd36b5898961857723e
tree4102c798504529a881d444161924cb2dd7a2b69d
parent97cc9f6702623e1b5e346bae3458c1e40300b23e
Simplify Block::getBy and Block::getByName

Block::getBlocker always returns a User, so there is no need for
these methods to check.

Change-Id: I0319f0aee8d3fb3c89e8f63ee2f4ba05c8d36482
includes/Block.php