Fix assignment to const variable

This commit is contained in:
Pedro Pombeiro 2018-10-10 11:08:39 +02:00
parent e5658c9522
commit e6ae5b9e87
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 15 additions and 15 deletions

View File

@ -64,7 +64,7 @@ async function handlePullRequest (context, robot) {
try { try {
const { found, comment } = await getCheckListComment(context) const { found, comment } = await getCheckListComment(context)
const targetUrl = 'https://github.com/status-im/status-github-bot.git' let targetUrl = 'https://github.com/status-im/status-github-bot.git'
if (found) { if (found) {
targetUrl = comment.url targetUrl = comment.url
} }
@ -162,7 +162,7 @@ function checkPRChecklist (str) {
let body = null let body = null
const isBotComment = str.match(/(<!--prchecklist-->)/g) const isBotComment = str.match(/(<!--prchecklist-->)/g)
if (isBotComment == null) return { found, body } if (isBotComment == null) return { found, body }
let res = str.match(/(-\s\[(\s|x)])(.*)/gm) const res = str.match(/(-\s\[(\s|x)])(.*)/gm)
if (res && res.length > 0) { if (res && res.length > 0) {
found = true found = true
body = res body = res