Omer Frenkel has submitted this change and it was merged.
Change subject: core: cleanup RemoveVmTemplateCommand#canDoAction
......................................................................
core: cleanup RemoveVmTemplateCommand#canDoAction
1. Replace consecutive lines of call to addCanDoActionMessage and then
'return false' with 'return failCanDoAction(..)'
2. Replace calls to DbFacade.getInstance() with call to getDbFacade()
3. Replace if-else statement with ternary-if
Change-Id: If669283fc057cff4eee46dfb15e004672d05fac1
Signed-off-by: Arik Hadas <ahadas(a)redhat.com>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmTemplateCommand.java
1 file changed, 7 insertions(+), 14 deletions(-)
Approvals:
Omer Frenkel: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/15877
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If669283fc057cff4eee46dfb15e004672d05fac1
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <ahadas(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas(a)redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server