diff --git a/src/setup.coffee b/src/setup.coffee index a930af0..fabf2bf 100644 --- a/src/setup.coffee +++ b/src/setup.coffee @@ -44,5 +44,5 @@ export class Setup folders = (await readdir directory, withFileTypes: true).filter (entity) -> entity.isDirectory() switch folders.length when 0 then throw Error "No subfolder found in: #{directory}." - when 1 then return folders[0].name + when 1 then folders[0].name else throw Error "Multiple subfolders found in: #{directory}."