Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 4fc77e3

Browse files
denizdoganmbroadst
authored andcommitted
fix(auth): don't redeclare BSON variable in plain auth
* Don't redeclare BSON variable * Update according to PR comments
1 parent 9b35583 commit 4fc77e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/auth/plain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
var BSON = require('bson');
44

55
var f = require('util').format
6-
, Binary = BSON.Binary
76
, retrieveBSON = require('../connection/utils').retrieveBSON
87
, Query = require('../connection/commands').Query
98
, MongoError = require('../error');
109

11-
var BSON = retrieveBSON();
10+
var BSON = retrieveBSON()
11+
, Binary = BSON.Binary;
1212

1313
var AuthSession = function(db, username, password) {
1414
this.db = db;

0 commit comments

Comments
 (0)