From 57ff06576a8021f331c7ab2efb42a2766af2df26 Mon Sep 17 00:00:00 2001 From: Faraz Samapoor Date: Tue, 27 Jun 2023 21:21:21 +0330 Subject: Fixes psalm errors: RedundantCondition and TypeDoesNotContainNull. Signed-off-by: Faraz Samapoor --- lib/private/Avatar/AvatarManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3