Skip to content

Commit

Permalink
Code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Nov 4, 2024
1 parent 252d7c6 commit 21cd365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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}."

0 comments on commit 21cd365

Please sign in to comment.