PeerMonitor: Simplify a switch-case.
@@ -220,8 +220,9 @@ public class PeerMonitor {
case CHAIN_HEIGHT:
return peer.getBestHeight();
case PING_TIME:
+ return peer.getPingTime();
case LAST_PING_TIME:
- return col == PING_TIME ? peer.getPingTime() : peer.getLastPingTime();
+ return peer.getLastPingTime();
default: throw new RuntimeException();
}
