Remove unneeded isset check

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-09-11 16:20:30 +02:00
parent 8ab2d5a8d9
commit 441adaa74a
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 2 additions and 2 deletions

View File

@ -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]);
}
}