From: Nick Mathewson Date: Thu, 11 Apr 2013 19:11:46 +0000 (-0400) Subject: Remove a now-empty if body; invert the sense of its condition X-Git-Tag: tor-0.2.4.12-alpha~4^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3ae628517c311c4339f91bbeb8230d13a172d53;p=thirdparty%2Ftor.git Remove a now-empty if body; invert the sense of its condition --- diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 142f80d351..e4533b7735 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1967,9 +1967,7 @@ dirserv_compute_performance_thresholds(routerlist_t *rl, mtbfs[n_active] = rep_hist_get_stability(id, now); tks [n_active] = rep_hist_get_weighted_time_known(id, now); bandwidths_kb[n_active] = bw_kb = dirserv_get_credible_bandwidth_kb(ri); - if (node->is_exit && !node->is_bad_exit) { - ; - } else { + if (!node->is_exit || node->is_bad_exit) { bandwidths_excluding_exits_kb[n_active_nonexit] = bw_kb; ++n_active_nonexit; }