Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) Remove "is qualified for live merge" check: Block commit is used since 4.2, see [1], [2]. So "getVm().getStatus().isQualifiedForLiveSnapshotMerge()" check is not needed anymore. 2) Remove redundant enum check: a) Simplifying the "isRemoveAutoGeneratedSnapshotRequired()" method: There is no need to test the 2nd part in the condition that looks like: stage == enumA && stage != enumB b) After the above simplification, the method can be inlined to receive an even more simple code. [1] https://bugzilla.redhat.com/1246114 [2] https://bugzilla.redhat.com/1369942 Signed-off-by: Pavel Bar <pbar@redhat.com>
- Loading branch information