summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/View.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index fb0b116666e..a6971cb0205 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -426,8 +426,7 @@ class View {
flush();
}
fclose($handle);
- $size = $this->filesize($path);
- return $size;
+ return $this->filesize($path);
}
return false;
}
@@ -476,8 +475,7 @@ class View {
echo fread($handle, $len);
flush();
}
- $size = ftell($handle) - $from;
- return $size;
+ return ftell($handle) - $from;
}
throw new \OCP\Files\UnseekableException('fseek error');
@@ -1083,8 +1081,7 @@ class View {
}
list($storage, $internalPath) = Filesystem::resolvePath($absolutePath . $postFix);
if ($storage) {
- $result = $storage->hash($type, $internalPath, $raw);
- return $result;
+ return $storage->hash($type, $internalPath, $raw);
}
}
return null;