added return statement if no root path for storage is provided

This commit is contained in:
subnub
2020-05-08 17:44:15 -04:00
parent 63ed58b990
commit 01f3ce8176
+4
View File
@@ -21,6 +21,10 @@ class StorageController {
}
try {
if (!env.root || env.root.length === 0) {
return;
}
const info = await disk.check(env.root!);