Minor Boolean expression simplification

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
Laszlo Hornyak 2014-02-09 19:05:28 +01:00
parent 74a3cb4d5e
commit d6a6e8dfa5
1 changed files with 1 additions and 5 deletions

View File

@ -310,11 +310,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
throw new InternalErrorException("volume:" + srcPath + " is not exits");
}
String result = Script.runSimpleBashScript("cp " + srcPath + " " + destPath + File.separator + volumeName, timeout);
if (result != null) {
return false;
} else {
return true;
}
return result == null;
}
public LibvirtStoragePoolDef getStoragePoolDef(Connect conn, StoragePool pool) throws LibvirtException {