Skip to content

Commit b866594

Browse files
committed
Merge branch 'canary' into typescript
2 parents 62be8a1 + 973b0f8 commit b866594

File tree

7 files changed

+426
-146
lines changed

7 files changed

+426
-146
lines changed

lib/connectionCapabilities.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,16 @@ ConnectionCapabilities.prototype.set_databases = function(newdbs) {
6262
ConnectionCapabilities.prototype.get_database = function(dbid, orgid) {
6363
if(!this.databases) this.databases = this._databases_from_dbdocs()
6464
for(var i = 0; i<this.databases.length; i++){
65-
if(this.databases[i].id == dbid && this.databases[i].organization == orgid) return this.databases[i]
65+
if(this.databases[i].id == dbid && this.databases[i].organization == orgid){
66+
return this.databases[i]
67+
}
6668
}
6769
}
6870

6971
ConnectionCapabilities.prototype._databases_from_dbdocs = function() {
7072
let dbs = []
7173
for(var docid in this.dbdocs){
72-
if(this.dbdocs[docid].system == false) {
74+
if(this.dbdocs[docid].system === false) {
7375
dbs.push(this._get_db_rec(this.dbdocs[docid]))
7476
}
7577
}

0 commit comments

Comments
 (0)