diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-24 11:40:56 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-07 11:23:32 +0100 |
commit | 028c225d96d5aac9789aed68082b5177a7f66563 (patch) | |
tree | 7ddde905316551427916da04334d9ce7687cb386 /apps/dav/lib/Connector/Sabre/File.php | |
parent | db80ac02b0a9bf9ab4156884e24466afa19cfdff (diff) | |
download | nextcloud-server-028c225d96d5aac9789aed68082b5177a7f66563.tar.gz nextcloud-server-028c225d96d5aac9789aed68082b5177a7f66563.zip |
Fix psalm errors
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/File.php')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/File.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php index fd8a6437222..b0f17417d21 100644 --- a/apps/dav/lib/Connector/Sabre/File.php +++ b/apps/dav/lib/Connector/Sabre/File.php @@ -138,7 +138,7 @@ class File extends Node implements IFile { public function put($data) { try { $exists = $this->fileView->file_exists($this->path); - if ($this->info && $exists && !$this->info->isUpdateable()) { + if ($exists && !$this->info->isUpdateable()) { throw new Forbidden(); } } catch (StorageNotAvailableException $e) { @@ -759,9 +759,6 @@ class File extends Node implements IFile { * @return string|null */ public function getChecksum() { - if (!$this->info) { - return null; - } return $this->info->getChecksum(); } |