added return statement if no root path for storage is provided
This commit is contained in:
@@ -21,6 +21,10 @@ class StorageController {
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
if (!env.root || env.root.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const info = await disk.check(env.root!);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user