From: Joas Schilling Date: Fri, 11 Sep 2020 14:20:30 +0000 (+0200) Subject: Remove unneeded isset check X-Git-Tag: v20.0.0RC1~38^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F22809%2Fhead;p=nextcloud-server.git Remove unneeded isset check Signed-off-by: Joas Schilling --- diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php index 25c30937e27..20f4afd0ded 100644 --- a/lib/private/AllConfig.php +++ b/lib/private/AllConfig.php @@ -317,7 +317,7 @@ class AllConfig implements \OCP\IConfig { */ public function getUserValue($userId, $appName, $key, $default = '') { $data = $this->getUserValues($userId); - if (isset($data[$appName]) and isset($data[$appName][$key])) { + if (isset($data[$appName][$key])) { return $data[$appName][$key]; } else { return $default; @@ -355,7 +355,7 @@ class AllConfig implements \OCP\IConfig { 'WHERE `userid` = ? AND `appid` = ? AND `configkey` = ?'; $this->connection->executeUpdate($sql, [$userId, $appName, $key]); - if (isset($this->userCache[$userId]) and isset($this->userCache[$userId][$appName])) { + if (isset($this->userCache[$userId][$appName])) { unset($this->userCache[$userId][$appName][$key]); } }