From: Derick Alangi Date: Fri, 1 Feb 2019 16:02:30 +0000 (+0100) Subject: Exception is never thrown in the getConnection() method X-Git-Tag: 1.34.0-rc.0~2851^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=656dacdfe8dcf12e3a8a8b28dc04f7755bfacc07 Exception is never thrown in the getConnection() method Change-Id: I4758e049ebbc67c2a9bc0fefe8b8c2d19f598929 --- diff --git a/includes/watcheditem/WatchedItemQueryService.php b/includes/watcheditem/WatchedItemQueryService.php index 95b4cb49ed..a85e7e8f10 100644 --- a/includes/watcheditem/WatchedItemQueryService.php +++ b/includes/watcheditem/WatchedItemQueryService.php @@ -88,7 +88,6 @@ class WatchedItemQueryService { /** * @return IDatabase - * @throws MWException */ private function getConnection() { return $this->loadBalancer->getConnectionRef( DB_REPLICA, [ 'watchlist' ] );