Skip to content

Commit d6a6e8d

Browse files
committed
Minor Boolean expression simplification
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
1 parent 74a3cb4 commit d6a6e8d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,7 @@ public boolean copyVolume(String srcPath, String destPath, String volumeName, in
310310
throw new InternalErrorException("volume:" + srcPath + " is not exits");
311311
}
312312
String result = Script.runSimpleBashScript("cp " + srcPath + " " + destPath + File.separator + volumeName, timeout);
313-
if (result != null) {
314-
return false;
315-
} else {
316-
return true;
317-
}
313+
return result == null;
318314
}
319315

320316
public LibvirtStoragePoolDef getStoragePoolDef(Connect conn, StoragePool pool) throws LibvirtException {

0 commit comments

Comments
 (0)