commit 5c8f0d533ff94b6a6098bf2acaf2dbd0560353bc Author: Iain R. Learmonth irl@fsfe.org Date: Wed Jul 4 16:09:30 2018 +0100
Removes unnecessary cast --- .../java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java b/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java index b34d2ef..da55475 100644 --- a/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java +++ b/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java @@ -628,7 +628,7 @@ public class NodeDetailsStatusUpdater implements DescriptorListener, boolean isExit = nodeStatus.getRelayFlags().contains("Exit") && !nodeStatus.getRelayFlags().contains("BadExit"); boolean isGuard = nodeStatus.getRelayFlags().contains("Guard"); - double consensusWeight = (double) nodeStatus.getConsensusWeight(); + double consensusWeight = nodeStatus.getConsensusWeight(); consensusWeights.put(fingerprint, consensusWeight); totalConsensusWeight += consensusWeight; if (consensusContainsBandwidthWeights) {