]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove a now-empty if body; invert the sense of its condition
authorNick Mathewson <nickm@torproject.org>
Thu, 11 Apr 2013 19:11:46 +0000 (15:11 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 15 Apr 2013 01:47:29 +0000 (21:47 -0400)
src/or/dirserv.c

index 142f80d351de33a265ff33d4d19baa142c58af3d..e4533b77359f1401c045e34998c0a02c0437da2e 100644 (file)
@@ -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;
       }