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 6537ad8 commit fd4495d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/release.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Release
get: ->
asset = @getAsset process.platform
path = if asset then "releases/download/#{@tag}/#{asset.file}" else "archive/refs/tags/#{@tag}.zip"
return new URL path, Release.baseUrl
new URL path, Release.baseUrl

# Creates a new release.
constructor: (version, assets = []) ->
Expand Down
2 changes: 1 addition & 1 deletion src/setup.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,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 fd4495d

Please sign in to comment.