From f85b1613535ef90c5f573f9fa4f94505fec199ec Mon Sep 17 00:00:00 2001 From: brad Date: Fri, 20 Dec 2024 22:13:53 -0800 Subject: [PATCH 1/2] comment out redundant return; --- gun.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gun.js b/gun.js index fc34f07ba..281259540 100644 --- a/gun.js +++ b/gun.js @@ -1215,7 +1215,7 @@ return; //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. - return; + //return; } var empty = {}, valid = Gun.valid, u; })(USE, './get'); From 6c9f2ce07216c0d290680d1bef16fd4e88a41990 Mon Sep 17 00:00:00 2001 From: brad Date: Fri, 20 Dec 2024 22:20:11 -0800 Subject: [PATCH 2/2] remove redundant return --- gun.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gun.js b/gun.js index 281259540..2247c57d5 100644 --- a/gun.js +++ b/gun.js @@ -1212,10 +1212,9 @@ //if(!map || !(tmp = map[at]) || !(tmp = tmp.at)){ return } if(tmp = (seen = this.seen || (this.seen = {}))[at]){ return 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. //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; } var empty = {}, valid = Gun.valid, u; })(USE, './get');