[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [atlas/master] Set family members even when they're empty (Fixes: #19739)



commit ed6e12d375f616988918113bdeb7a010a072d117
Author: Raphael Bergmann <raphael@xxxxxxxxxx>
Date:   Wed Mar 1 17:07:06 2017 +0100

    Set family members even when they're empty (Fixes: #19739)
---
 js/models/relay.js | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/js/models/relay.js b/js/models/relay.js
index c0c1a84..6319e0a 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -160,13 +160,8 @@ define([
                     relay.obandwidth = relay.observed_bandwidth ? hrBandwidth(relay.observed_bandwidth) : null;
                     relay.bandwidth = relay.advertised_bandwidth ? relay.advertised_bandwidth : null;
                     relay.bandwidth_hr = relay.advertised_bandwidth ? hrBandwidth(relay.advertised_bandwidth) : null;
-                    if(relay.alleged_family || relay.effective_family) {
-						relay.effective_family = relay.effective_family ? relay.effective_family : null;
-						relay.alleged_family = relay.alleged_family ? relay.alleged_family : null;
-						relay.empty_family = false;
-					} else {
-						relay.empty_family = true;
-					}
+                    relay.effective_family = relay.effective_family ? relay.effective_family : null;
+                    relay.alleged_family = relay.alleged_family ? relay.alleged_family : null;
                     if (relay.is_bridge) {
                         var new_addresses = [];
                         _.each(relay.or_addresses, function(or_addr) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits