From 4045de7c2c3fa4a49eb864436c76d7e99662bc7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?netop=3A//=E3=82=A6=E3=82=A8=E3=83=8F?= Date: Thu, 11 Jul 2019 17:25:55 -0500 Subject: [PATCH] Removed commented code --- app/helpers/github.js | 10 ---------- app/index.js | 5 ----- 2 files changed, 15 deletions(-) diff --git a/app/helpers/github.js b/app/helpers/github.js index 29d6155..a75efe8 100644 --- a/app/helpers/github.js +++ b/app/helpers/github.js @@ -16,16 +16,6 @@ import relativeDate from "~module/relative-date"; let octokit; -// String.prototype.escape = function() { -// const tagsToReplace = { -// "&": "&", -// "<": "<", -// ">": ">" -// }; - -// return this.replace(/[&<>]/g, tag => tagsToReplace[tag] || tag); -// }; - // R E D I S let client; diff --git a/app/index.js b/app/index.js index a788ffc..ff68d0f 100755 --- a/app/index.js +++ b/app/index.js @@ -26,11 +26,6 @@ const server = fastify({ redact: ["req.headers.authorization"], serializers: { req(req) { - // TODO: Figure out how to trigger this to test - // It is annoying to see in development - if (req.err && req.err.message.includes("Premature close")) - return {}; - return { headers: req.headers, hostname: req.hostname,