commit fecc21244ba36ea233615bc601c222d4313d6913
Author: Iain R. Learmonth <i...@fsfe.org>
Date:   Fri Feb 9 15:46:04 2018 +0000

    Remove redundant checks for required fields (See: #24494)
---
 js/models/relay.js | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/js/models/relay.js b/js/models/relay.js
index 63ac0bf..4984d65 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -187,7 +187,6 @@ define([
         processRelay: function(options, model, relay) {
                     relay.contact = relay.contact ? relay.contact : 
'undefined';
                     relay.platform = relay.platform ? relay.platform : null;
-                    relay.nickname = relay.nickname ? relay.nickname : 
"Unnamed";
                     relay.dir_address = relay.dir_address ? relay.dir_address 
: null;
                     relay.exit_policy = relay.exit_policy ? relay.exit_policy 
: null;
                     relay.exit_policy_summary = relay.exit_policy_summary ?  
relay.exit_policy_summary : null;
@@ -219,7 +218,6 @@ define([
                     relay.host_name = relay.host_name ? relay.host_name : null;
                     relay.country = relay.country ? 
relay.country.toLowerCase() : null;
                     relay.countryname = relay.country ? 
CountryCodes[relay.country] : null;
-                    relay.first_seen = relay.first_seen ? relay.first_seen : 
null;
                     relay.age = relay.first_seen ? 
model.parsedate(relay.first_seen).hrfull : null;
                     relay.new_relay = relay.first_seen ? 
model.is_new(relay.first_seen) : null;
                     relay.uptime = relay.last_restarted ? 
model.parsedate(relay.last_restarted) : null;
@@ -227,7 +225,6 @@ define([
                     relay.uptime_hrfull = relay.last_restarted ? 
relay.uptime.hrfull : null;
                     relay.uptime = relay.last_restarted ? 
relay.uptime.millisecs : null;
                     relay.last_restarted = relay.last_restarted ? 
relay.last_restarted : null;
-                    relay.last_seen = relay.last_seen ? relay.last_seen : null;
                     relay.downtime = relay.last_seen ? 
model.parsedate(relay.last_seen).hrfull : null;
                     relay.as_number = relay.as_number ? relay.as_number : null;
                     relay.as_name = relay.as_name ? relay.as_name : null;



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

Reply via email to