diff options
author | Piotr Filiciak <piotr@filiciak.pl> | 2016-05-23 15:17:00 +0200 |
---|---|---|
committer | Piotr Filiciak <piotr@filiciak.pl> | 2016-05-23 15:17:00 +0200 |
commit | 6577bbe887840889e16634b9bf1c4ce247ec265e (patch) | |
tree | 97f8fd1f8e846a06fd62f48de81c49d5a6ae64e9 /lib/private/Files | |
parent | 9999e05660637c77947c71656d2f03d841e19ab9 (diff) | |
download | nextcloud-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.php | 8 |
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; } |