in the image-service the result of ListMachines is only used later when doing the lookup via machinesByImage. But after this lookup we have a nested if-construct where the inner "if" is always false as it was checked a few lines above. so the if len(machiens) ... is alway an empty block and can be removed. so the whole Listmachines .
same in network-service as the if err != nil is always false.
remove dead code.
in the image-service the result of
ListMachines
is only used later when doing the lookup viamachinesByImage
. But after this lookup we have a nested if-construct where the inner "if" is always false as it was checked a few lines above. so theif len(machiens) ...
is alway an empty block and can be removed. so the wholeListmachines
.same in
network-service
as theif err != nil
is always false.