Skip to content

Commit 7f5fe78

Browse files
committed
only fetch vendor once
1 parent 6e11e0e commit 7f5fe78

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lifecycleScripts/install.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ function checkAndBuild(nwVersion) {
5757
return checkPrepared.checkAll()
5858
.then(function(allGood) {
5959
if (allGood) {
60-
return build(nwVersion);
60+
return Promise.resolve();
6161
}
6262
else {
6363
console.info("[nodegit] Something is missing, retrieving dependencies and regenerating code");
64-
return prepareForBuild()
65-
.then(function() {
66-
return build(nwVersion);
67-
});
64+
return prepareForBuild();
6865
}
66+
})
67+
.then(function() {
68+
return build(nwVersion);
6969
});
7070
}
7171

0 commit comments

Comments
 (0)