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

Commit

Permalink
fix(auth-plain): only use BSON -after- requiring it
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Sep 3, 2017
1 parent 812091b commit 4934adf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/auth/plain.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';

var BSON = retrieveBSON();

var f = require('util').format,
Binary = BSON.Binary,
retrieveBSON = require('../connection/utils').retrieveBSON,
Query = require('../connection/commands').Query,
MongoError = require('../error').MongoError;

var BSON = retrieveBSON(),
Binary = BSON.Binary;

var AuthSession = function(db, username, password) {
this.db = db;
this.username = username;
Expand Down

0 comments on commit 4934adf

Please sign in to comment.