From 01f3ce8176930441986138ec836c080202a0a1d7 Mon Sep 17 00:00:00 2001 From: subnub Date: Fri, 8 May 2020 17:44:15 -0400 Subject: [PATCH] added return statement if no root path for storage is provided --- backend/controllers/storage.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/controllers/storage.ts b/backend/controllers/storage.ts index db7bb48..221bedb 100644 --- a/backend/controllers/storage.ts +++ b/backend/controllers/storage.ts @@ -21,6 +21,10 @@ class StorageController { } try { + + if (!env.root || env.root.length === 0) { + return; + } const info = await disk.check(env.root!);