Fixes psalm errors: RedundantCondition and TypeDoesNotContainNull.

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
pull/38989/head
Faraz Samapoor 3 years ago
parent dd67635560
commit 57ff06576a
  1. 2
      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);

Loading…
Cancel
Save