From 7a05f8b6a05ad6ca9839d86f860214a23284119a Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sat, 7 Sep 2019 18:34:14 +0200 Subject: [PATCH] fix: remove duplicate sanitize --- lib/platform/github/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts index 7e85b45ef0..743f65bf28 100644 --- a/lib/platform/github/index.ts +++ b/lib/platform/github/index.ts @@ -1043,7 +1043,7 @@ export async function ensureComment( let commentNeedsUpdating = false; if (topic) { logger.debug(`Ensuring comment "${topic}" in #${issueNo}`); - body = hostRules.sanitize(`### ${topic}\n\n${content}`); + body = `### ${topic}\n\n${content}`; comments.forEach(comment => { if (comment.body.startsWith(`### ${topic}\n\n`)) { commentId = comment.id; @@ -1588,7 +1588,7 @@ export async function getPrFiles(prNo: number) { export async function updatePr(prNo: number, title: string, rawBody?: string) { logger.debug(`updatePr(${prNo}, ${title}, body)`); - const body = rawBody ? hostRules.sanitize(rawBody) : null; + const body = hostRules.sanitize(rawBody); const patchBody: any = { title }; if (body) { patchBody.body = body; -- GitLab