Skip to content

Commit e379e9f

Browse files
authored
fix: return value for validateLint (#482)
1 parent ebc8fb2 commit e379e9f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/landing_session.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,12 @@ class LandingSession extends Session {
137137
return true;
138138
}
139139

140-
const linted = await runAsync('make', ['lint']);
141-
return linted;
140+
try {
141+
await runAsync('make', ['lint']);
142+
return true;
143+
} catch {
144+
return false;
145+
}
142146
}
143147

144148
async tryCompleteLanding(patch) {
@@ -216,6 +220,8 @@ class LandingSession extends Session {
216220
'`git node land --continue`.');
217221
process.exit(1);
218222
}
223+
} else {
224+
cli.ok('Lint passed cleanly');
219225
}
220226

221227
this.startAmending();

0 commit comments

Comments
 (0)