summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorPiotr Filiciak <piotr@filiciak.pl>2016-05-23 15:17:00 +0200
committerPiotr Filiciak <piotr@filiciak.pl>2016-05-23 15:17:00 +0200
commit6577bbe887840889e16634b9bf1c4ce247ec265e (patch)
tree97f8fd1f8e846a06fd62f48de81c49d5a6ae64e9 /lib/private/Files
parent9999e05660637c77947c71656d2f03d841e19ab9 (diff)
downloadnextcloud-server-6577bbe887840889e16634b9bf1c4ce247ec265e.tar.gz
nextcloud-server-6577bbe887840889e16634b9bf1c4ce247ec265e.zip
Code style and doc fix
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/View.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index 136b2c2ac34..27613903086 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -429,7 +429,8 @@ class View {
* @param int $from
* @param int $to
* @return bool|mixed
- * @throws \OCP\Files\InvalidPathException, \OCP\Files\UnseekableException
+ * @throws \OCP\Files\InvalidPathException
+ * @throws \OCP\Files\UnseekableException
*/
public function readfilePart($path, $from, $to) {
$this->assertPathLength($path);
@@ -450,9 +451,8 @@ class View {
$size = ftell($handle) - $from;
return $size;
}
- else {
- throw new \OCP\Files\UnseekableException('fseek error');
- }
+
+ throw new \OCP\Files\UnseekableException('fseek error');
}
return false;
}