From 07d6808e4e82bc94eb99a451df6480419ff7bb44 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 9 Oct 2024 01:46:07 +0300 Subject: [PATCH] [chore] Rename local variable, use strict comparison. --- src/users.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/users.js b/src/users.js index b1da76901..c3a98e02e 100644 --- a/src/users.js +++ b/src/users.js @@ -655,13 +655,13 @@ async function basicUserLogin(request) { return false; } - const auth_header = request.get('Authorization'); - if (!auth_header) { + const authHeader = request.get('Authorization'); + if (!authHeader) { return false; } - const parts = auth_header.split(' '); - if (!parts || parts.length < 2 || parts[0].toLowerCase() != 'basic') { + const parts = authHeader.split(' '); + if (!parts || parts.length < 2 || parts[0].toLowerCase() !== 'basic') { return false; }