Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 59db3a1

Browse files
committed
Used const instead of let
1 parent bca58ab commit 59db3a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/plugins/leetcode.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,7 @@ plugin.login = function(user, cb) {
535535

536536
function parseCookie(cookie, body, cb) {
537537
const SessionPattern = /LEETCODE_SESSION=(.+?)(;|$)/;
538-
let csrfPattern;
539-
csrfPattern = /csrftoken=(.+?)(;|$)/;
538+
const csrfPattern = /csrftoken=(.+?)(;|$)/;
540539
const reCsrfResult = csrfPattern.exec(cookie);
541540
const reSessionResult = SessionPattern.exec(cookie);
542541
if (reSessionResult === null || reCsrfResult === null) {

0 commit comments

Comments
 (0)