diff options
author | Faraz Samapoor <fsa@adlas.at> | 2023-06-27 21:21:21 +0330 |
---|---|---|
committer | Faraz Samapoor <fsa@adlas.at> | 2023-06-27 21:21:21 +0330 |
commit | 57ff06576a8021f331c7ab2efb42a2766af2df26 (patch) | |
tree | cc9bdd79c3461cdc05acebeb99cc72ceb8d0730a | |
parent | dd676355603257e939b510d4166ac9853a7ed242 (diff) | |
download | nextcloud-server-57ff06576a8021f331c7ab2efb42a2766af2df26.tar.gz nextcloud-server-57ff06576a8021f331c7ab2efb42a2766af2df26.zip |
Fixes psalm errors: RedundantCondition and TypeDoesNotContainNull.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
-rw-r--r-- | lib/private/Avatar/AvatarManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Avatar/AvatarManager.php b/lib/private/Avatar/AvatarManager.php index d3594a2bffe..1e137fa8715 100644 --- a/lib/private/Avatar/AvatarManager.php +++ b/lib/private/Avatar/AvatarManager.php @@ -83,7 +83,7 @@ class AvatarManager implements IAvatarManager { // sanitize userID - fixes casing issue (needed for the filesystem stuff that is done below) $userId = $user->getUID(); - $requestingUser = $this->userSession?->getUser(); + $requestingUser = $this->userSession->getUser(); try { $folder = $this->appData->getFolder($userId); |