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 <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to