minor code refactoring

This commit is contained in:
2023-01-05 15:22:31 +01:00
parent 1716346628
commit 97eb686eb1
2 changed files with 2 additions and 5 deletions

View File

@@ -56,7 +56,4 @@ try {
settings = require('../../settings.json');
} catch (e) { }
export function directoryTree() {
const tree = buildTreeDFS(settings.download_path || 'downloads', true)
return tree
}
export const directoryTree = () => buildTreeDFS(settings.download_path || 'downloads', true)