Skip to content

Commit

Permalink
Correct success/failure ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
ataylorme committed Jan 27, 2020
1 parent 1666ff0 commit 995ce88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4323,7 +4323,7 @@ function run() {
return __awaiter(this, void 0, void 0, function* () {
const reportJSON = eslint_json_report_to_js_1.default();
const esLintAnalysis = analyze_eslint_js_1.default(reportJSON);
const conclusion = esLintAnalysis.success ? 'failure' : 'success';
const conclusion = esLintAnalysis.success ? 'success' : 'failure';
const currentTimestamp = new Date().toISOString();
// If this is NOT a pull request
if (!PULL_REQUEST) {
Expand Down
2 changes: 1 addition & 1 deletion src/eslint-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { CHECK_NAME, OCTOKIT, OWNER, PULL_REQUEST, REPO, SHA } = CONSTANTS;
async function run(): Promise<void> {
const reportJSON = ESLintJsonReportToJS();
const esLintAnalysis = analyzeESLintReport(reportJSON);
const conclusion = esLintAnalysis.success ? 'failure' : 'success';
const conclusion = esLintAnalysis.success ? 'success' : 'failure';
const currentTimestamp = new Date().toISOString();

// If this is NOT a pull request
Expand Down

0 comments on commit 995ce88

Please sign in to comment.