Skip to content

Commit

Permalink
cleanup: unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanson committed Mar 19, 2024
1 parent 0e49ee3 commit c21fa98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public synchronized void taskAccepted(Executor executor, Queue.Task task) {
LOGGER.info("Will revert VM \"" + virtualMachine.getName() + "\" to Before Job snapshot \"" + snapshotName + "\" for task \"" + task.getDisplayName() + "\"");
getListener().getLogger().println("Will revert VM \"" + virtualMachine.getName() + "\" to Before Job snapshot \"" + snapshotName + "\" for task \"" + task.getDisplayName() + "\"");

SlaveComputer slaveComputer = (SlaveComputer) slave.getComputer();
SlaveComputer slaveComputer = slave.getComputer();

Check warning on line 188 in src/main/java/hudson/plugins/libvirt/VirtualMachineSlaveComputer.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 188 is not covered by tests
if (slaveComputer == null) {
getListener().fatalError("Could not determine node.");
return;
Expand Down

0 comments on commit c21fa98

Please sign in to comment.