remove redundant return statement (#1394)

* comment out redundant return;

* remove redundant return
This commit is contained in:
brad winter 2025-03-08 11:13:14 -08:00 committed by GitHub
parent e3a5a52506
commit 0c423c999c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

1
gun.js
View File

@ -1212,7 +1212,6 @@
//if(!map || !(tmp = map[at]) || !(tmp = tmp.at)){ return } //if(!map || !(tmp = map[at]) || !(tmp = tmp.at)){ return }
if(tmp = (seen = this.seen || (this.seen = {}))[at]){ return true } if(tmp = (seen = this.seen || (this.seen = {}))[at]){ return true }
seen[at] = true; seen[at] = true;
return;
//tmp.echo[cat.id] = {}; // TODO: Warning: This unsubscribes ALL of this chain's listeners from this link, not just the one callback event. //tmp.echo[cat.id] = {}; // TODO: Warning: This unsubscribes ALL of this chain's listeners from this link, not just the one callback event.
//obj.del(map, at); // TODO: Warning: This unsubscribes ALL of this chain's listeners from this link, not just the one callback event. //obj.del(map, at); // TODO: Warning: This unsubscribes ALL of this chain's listeners from this link, not just the one callback event.
return; return;