1
0

[MINOR] 'return' is unnecessary as the last statement in a 'void' method (#3012)

This commit is contained in:
Wei
2021-05-31 11:43:10 +08:00
committed by GitHub
parent dcd7c331dc
commit d965b0550f

View File

@@ -168,7 +168,6 @@ public class HoodieHeartbeatClient implements AutoCloseable, Serializable {
ValidationUtils.checkArgument(heartbeat == null || !heartbeat.isHeartbeatStopped(), "Cannot restart a stopped heartbeat for " + instantTime);
if (heartbeat != null && heartbeat.isHeartbeatStarted()) {
// heartbeat already started, NO_OP
return;
} else {
Heartbeat newHeartbeat = new Heartbeat();
newHeartbeat.setHeartbeatStarted(true);