X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/0afa417b0a9f1648e3c400f341ffa14c8b96599d..refs/pull/711/head:/app/Services/UploadService.php diff --git a/app/Services/UploadService.php b/app/Services/UploadService.php index 028e78bea..cd0567559 100644 --- a/app/Services/UploadService.php +++ b/app/Services/UploadService.php @@ -32,7 +32,9 @@ class UploadService */ protected function getStorage() { - if ($this->storageInstance !== null) return $this->storageInstance; + if ($this->storageInstance !== null) { + return $this->storageInstance; + } $storageType = config('filesystems.default'); $this->storageInstance = $this->fileSystem->disk($storageType); @@ -60,4 +62,4 @@ class UploadService { return strtolower(config('filesystems.default')) === 'local'; } -} \ No newline at end of file +}