Skip to content

Commit

Permalink
fix: return value for validateLint (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored Aug 19, 2020
1 parent ebc8fb2 commit e379e9f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/landing_session.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,12 @@ class LandingSession extends Session {
return true;
}

const linted = await runAsync('make', ['lint']);
return linted;
try {
await runAsync('make', ['lint']);
return true;
} catch {
return false;
}
}

async tryCompleteLanding(patch) {
Expand Down Expand Up @@ -216,6 +220,8 @@ class LandingSession extends Session {
'`git node land --continue`.');
process.exit(1);
}
} else {
cli.ok('Lint passed cleanly');
}

this.startAmending();
Expand Down

0 comments on commit e379e9f

Please sign in to comment.