Skip to content

Commit

Permalink
fix: Node 10 is required for async/await (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed May 15, 2019
1 parent ef1bc9b commit c795eef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
"yargs": "^13.2.2"
},
"engines": {
"node": ">=8.10.0"
"node": ">=10.12.0"
}
}
5 changes: 3 additions & 2 deletions src/candidate-issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ ${CHECKBOX}

static bodySansFooter(body: string): string {
const footerPosition = body.indexOf(ISSUE_FOOTER);
if (footerPosition === -1)
if (footerPosition === -1) {
return body;
else
} else {
return body.slice(0, footerPosition);
}
}
}

0 comments on commit c795eef

Please sign in to comment.