Skip to content

Commit

Permalink
Remove unnecessary return
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Dec 17, 2024
1 parent ab79086 commit 40c4a24
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/hudson/plugins/ec2/EC2RetentionStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ public void taskAccepted(Executor executor, Queue.Task task) {
if (maxTotalUses <= -1) {
LOGGER.fine("maxTotalUses set to unlimited (" + slaveNode.maxTotalUses + ") for agent "
+ slaveNode.instanceId);
return;
} else if (maxTotalUses <= 1) {
LOGGER.info("maxTotalUses drained - suspending agent " + slaveNode.instanceId);
computer.setAcceptingTasks(false);
Expand Down

0 comments on commit 40c4a24

Please sign in to comment.