Removed commented code

This commit is contained in:
netop://ウエハ 2019-07-11 17:25:55 -05:00
parent 39bf3b56bc
commit 4045de7c2c
2 changed files with 0 additions and 15 deletions

View file

@ -16,16 +16,6 @@ import relativeDate from "~module/relative-date";
let octokit; let octokit;
// String.prototype.escape = function() {
// const tagsToReplace = {
// "&": "&",
// "<": "&lt;",
// ">": "&gt;"
// };
// return this.replace(/[&<>]/g, tag => tagsToReplace[tag] || tag);
// };
// R E D I S // R E D I S
let client; let client;

View file

@ -26,11 +26,6 @@ const server = fastify({
redact: ["req.headers.authorization"], redact: ["req.headers.authorization"],
serializers: { serializers: {
req(req) { 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 { return {
headers: req.headers, headers: req.headers,
hostname: req.hostname, hostname: req.hostname,