Allon Mureinik has uploaded a new change for review.

Change subject: ui: AddDataCenterRM redundant null check
......................................................................

ui: AddDataCenterRM redundant null check

The rollback3() method checks model for being null a couple of lines
after calling model.getWindow().
Hence, model is clearly not null, and this check is clearly redundant.

Change-Id: I02cf28a4b834d67ee0a90d9971461712c0954418
Signed-off-by: Allon Mureinik <amure...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/AddDataCenterRM.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/33/12333/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/AddDataCenterRM.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/AddDataCenterRM.java
index f84aa34..b437cef 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/AddDataCenterRM.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/AddDataCenterRM.java
@@ -204,7 +204,7 @@
         VDS host = context.hostFoundById;
 
         boolean abort = false;
-        if (model != null && model.getSelectedItem() != null) {
+        if (model.getSelectedItem() != null) {
 
             // Perform rollback only when the host is in maintenance.
             if (host.getStatus() != VDSStatus.Maintenance) {


--
To view, visit http://gerrit.ovirt.org/12333
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I02cf28a4b834d67ee0a90d9971461712c0954418
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amure...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to