From 106c21b6396b0a467d47dd569bc63d48be71e310 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 21 Jun 2020 20:59:57 -0400 Subject: [PATCH] Fix lint --- commands/other/screenshot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/other/screenshot.js b/commands/other/screenshot.js index fd3f797d..2af8583f 100644 --- a/commands/other/screenshot.js +++ b/commands/other/screenshot.js @@ -61,8 +61,8 @@ module.exports = class ScreenshotCommand extends Command { if (!force && this.pornList) return this.pornList; const { text } = await request.get('https://raw.githubusercontent.com/blocklistproject/Lists/master/porn.txt'); this.pornList = text.split('\n') - .filter(url => url && !url.startsWith('#')) - .map(url => url.replace(/^(0.0.0.0 )/, '')); // eslint-disable-line no-control-regex + .filter(site => site && !site.startsWith('#')) + .map(site => site.replace(/^(0.0.0.0 )/, '')); // eslint-disable-line no-control-regex return this.postList; } };