aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-04-11 15:11:46 -0400
committerNick Mathewson <nickm@torproject.org>2013-04-14 21:47:29 -0400
commitf3ae628517c311c4339f91bbeb8230d13a172d53 (patch)
treebd2a2aa05972667d23cba9942e61db1243d99cb2 /src/or/dirserv.c
parentc4de828923b7983003fa32732ee68581f3c59a89 (diff)
downloadtor-f3ae628517c311c4339f91bbeb8230d13a172d53.tar
tor-f3ae628517c311c4339f91bbeb8230d13a172d53.tar.gz
Remove a now-empty if body; invert the sense of its condition
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 142f80d35..e4533b773 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;
}