remove back ||

That doesn't do anything
This commit is contained in:
Zane Hitchcox 2017-03-14 20:09:18 -04:00 committed by GitHub
parent 439ef82c5b
commit 2ed536baf6

2
gun.js
View File

@ -1445,7 +1445,7 @@
Gun.chain.get = function(key, cb, as){ Gun.chain.get = function(key, cb, as){
//if(!as || !as.path){ var back = this._.root; } // TODO: CHANGING API! Remove this line! //if(!as || !as.path){ var back = this._.root; } // TODO: CHANGING API! Remove this line!
if(typeof key === 'string'){ if(typeof key === 'string'){
var gun, back = back || this, cat = back._; var gun, back = this, cat = back._;
var next = cat.next || empty, tmp; var next = cat.next || empty, tmp;
if(!(gun = next[key])){ if(!(gun = next[key])){
gun = cache(key, back); gun = cache(key, back);