Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #914 from atom-community/async-update-4upstream
Browse files Browse the repository at this point in the history
fix: update async package
  • Loading branch information
darangi authored Mar 4, 2021
2 parents a6f65c4 + 1b413e5 commit 511ebd1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"@atom/plist": "0.4.4",
"asar-require": "0.3.0",
"async": "~0.9.2",
"async": "^3.2.0",
"colors": "~1.4.0",
"first-mate": "^7.4.1",
"fs-plus": "3.x",
Expand Down
9 changes: 5 additions & 4 deletions src/install.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -518,16 +518,17 @@ class Install extends Command
]

cloneFirstValidGitUrl: (urls, cloneDir, options, callback) ->
async.detectSeries urls, (url, next) =>
async.detectSeries(urls, (url, next) =>
@cloneNormalizedUrl url, cloneDir, options, (error) ->
next(not error)
, (result) ->
if not result
next(null, not error)
, (err, result) ->
if err or not result
invalidUrls = "Couldn't clone #{urls.join(' or ')}"
invalidUrlsError = new Error(invalidUrls)
callback(invalidUrlsError)
else
callback()
)

cloneNormalizedUrl: (url, cloneDir, options, callback) ->
# Require here to avoid circular dependency
Expand Down

0 comments on commit 511ebd1

Please sign in to comment.