From e2781964bb176acbc1d826d7f3ac47f87af94634 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Tue, 1 Oct 2019 13:26:42 +0200 Subject: [PATCH] Fix lint error --- website/server/controllers/api-v3/auth.js | 2 -- website/server/controllers/api-v3/chat.js | 1 - 2 files changed, 3 deletions(-) diff --git a/website/server/controllers/api-v3/auth.js b/website/server/controllers/api-v3/auth.js index 6d14cc10ba..9d5d2a4977 100644 --- a/website/server/controllers/api-v3/auth.js +++ b/website/server/controllers/api-v3/auth.js @@ -308,8 +308,6 @@ api.resetPassword = { ]); await user.save(); - } else { - let user = await User.findOne({ 'auth.google.email': email }).exec(); } res.respond(200, {}, res.t('passwordReset')); diff --git a/website/server/controllers/api-v3/chat.js b/website/server/controllers/api-v3/chat.js index ba2312bae3..4d43368a68 100644 --- a/website/server/controllers/api-v3/chat.js +++ b/website/server/controllers/api-v3/chat.js @@ -20,7 +20,6 @@ import { getMatchesByWordArray } from '../../libs/stringUtils'; import bannedSlurs from '../../libs/bannedSlurs'; import apiError from '../../libs/apiError'; import {highlightMentions} from '../../libs/highlightMentions'; -import {sendNotification} from '../../libs/pushNotifications'; const FLAG_REPORT_EMAILS = nconf.get('FLAG_REPORT_EMAIL').split(',').map((email) => { return { email, canSend: true };