From c795eefa10dbc1d159c3037db7b4dc7f96830ca5 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Wed, 15 May 2019 14:28:28 -0700 Subject: [PATCH] fix: Node 10 is required for async/await (#89) --- package.json | 2 +- src/candidate-issue.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 086d9c9e5..aec992100 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,6 @@ "yargs": "^13.2.2" }, "engines": { - "node": ">=8.10.0" + "node": ">=10.12.0" } } diff --git a/src/candidate-issue.ts b/src/candidate-issue.ts index 606cabd89..489799043 100644 --- a/src/candidate-issue.ts +++ b/src/candidate-issue.ts @@ -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); + } } }