]> BookStack Code Mirror - bookstack/blobdiff - app/Services/AttachmentService.php
Adds and fixes pt_BR strings
[bookstack] / app / Services / AttachmentService.php
index 381e44749258ff4ef060d97d9580be18517262f6..3a6f95dcc7aa7f84d4520e32ab1e697695c2ce69 100644 (file)
@@ -14,10 +14,6 @@ class AttachmentService extends UploadService
      */
     protected function getStorage()
     {
-        if ($this->storageInstance !== null) {
-            return $this->storageInstance;
-        }
-
         $storageType = config('filesystems.default');
 
         // Override default location if set to local public to ensure not visible.
@@ -25,9 +21,7 @@ class AttachmentService extends UploadService
             $storageType = 'local_secure';
         }
 
-        $this->storageInstance = $this->fileSystem->disk($storageType);
-
-        return $this->storageInstance;
+        return $this->fileSystem->disk($storageType);
     }
 
     /**