Skip to content

Commit

Permalink
Fix: Invalid comment. Promise.resolve will be used if required.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Piechaczek committed Feb 13, 2017
1 parent 3fdc2e7 commit 8806286
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/commands/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ module.exports = {
return new Promise( ( resolve, reject ) => {
const destinationPath = path.join( data.options.packages, data.repository.directory );

let promise = Promise.resolve();
let promise;

// Package is not cloned.
// Package is already cloned.
if ( fs.existsSync( destinationPath ) ) {
log.info( `Package "${ data.packageName }" is already cloned.` );

promise = Promise.resolve();
} else {
const command = [
`git clone --progress ${ data.repository.url } ${ destinationPath }`,
Expand Down

0 comments on commit 8806286

Please sign in to comment.