Browse Source

Connection: change argument check

fork
Brian White 8 years ago
parent
commit
1ba7be0179
  1. 2
      lib/Connection.js

2
lib/Connection.js

@ -379,7 +379,7 @@ Connection.prototype.openBox = function(name, readOnly, cb) {
if (this.state !== 'authenticated')
throw new Error('Not authenticated');
if (cb === undefined) {
if (typeof readOnly === 'function') {
cb = readOnly;
readOnly = false;
}

Loading…
Cancel
Save