summaryrefslogtreecommitdiff
path: root/app/Api/File.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Api/File.php')
-rw-r--r--app/Api/File.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Api/File.php b/app/Api/File.php
index 760ee5ed..be415ecb 100644
--- a/app/Api/File.php
+++ b/app/Api/File.php
@@ -25,14 +25,12 @@ class File extends \Kanboard\Core\Base
public function downloadFile($file_id)
{
try {
-
$file = $this->file->getById($file_id);
if (! empty($file)) {
return base64_encode($this->objectStorage->get($file['path']));
}
- }
- catch (ObjectStorageException $e) {
+ } catch (ObjectStorageException $e) {
$this->logger->error($e->getMessage());
}