summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Upload
diff options
context:
space:
mode:
authoracsfer <carlos@reendex.com>2021-08-24 00:57:39 +0200
committerGitHub <noreply@github.com>2021-08-24 00:57:39 +0200
commit2132cde6e30790572f923bb04c6c607ca9242e1b (patch)
tree87181be3a65feaf0592255794043328f9eeb8db7 /apps/dav/lib/Upload
parent079f76ab12730eb9ea107bac9b4041cd136f2446 (diff)
downloadnextcloud-server-2132cde6e30790572f923bb04c6c607ca9242e1b.tar.gz
nextcloud-server-2132cde6e30790572f923bb04c6c607ca9242e1b.zip
Remove error suppression
This seems no longer needed as per https://bugs.php.net/bug.php?id=50688
Diffstat (limited to 'apps/dav/lib/Upload')
-rw-r--r--apps/dav/lib/Upload/AssemblyStream.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Upload/AssemblyStream.php b/apps/dav/lib/Upload/AssemblyStream.php
index aaea5fc88c2..4d8f98a4332 100644
--- a/apps/dav/lib/Upload/AssemblyStream.php
+++ b/apps/dav/lib/Upload/AssemblyStream.php
@@ -73,14 +73,14 @@ class AssemblyStream implements \Icewind\Streams\File {
$this->loadContext('assembly');
$nodes = $this->nodes;
- // https://stackoverflow.com/a/10985500
- @usort($nodes, function (IFile $a, IFile $b) {
+ usort($nodes, function (IFile $a, IFile $b) {
return strnatcmp($a->getName(), $b->getName());
});
$this->nodes = array_values($nodes);
$this->size = array_reduce($this->nodes, function ($size, IFile $file) {
return $size + $file->getSize();
}, 0);
+
return true;
}