Yevgeny Zaspitsky has uploaded a new change for review.

Change subject: restapi: Remove redundant condition in NetworkMapper
......................................................................

restapi: Remove redundant condition in NetworkMapper

Remove redundant condition in NetworkMapper class.

Change-Id: I2538941cc544725dcc2f70f5f3ae91a294fe6b2b
Signed-off-by: Yevgeny Zaspitsky <[email protected]>
---
M 
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/NetworkMapper.java
1 file changed, 0 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/16/33716/1

diff --git 
a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/NetworkMapper.java
 
b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/NetworkMapper.java
index c037bc9..37b35cc 100644
--- 
a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/NetworkMapper.java
+++ 
b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/NetworkMapper.java
@@ -110,8 +110,6 @@
             if (entity.getCluster().isMigration()) {
                 
model.getUsages().getUsages().add(NetworkUsage.MIGRATION.value());
             }
-        }
-        if (entity.getCluster() != null) {
             if (entity.getCluster().getStatus() != null) {
                 
model.setStatus(StatusUtils.create(map(entity.getCluster().getStatus(), null)));
             }


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2538941cc544725dcc2f70f5f3ae91a294fe6b2b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yevgeny Zaspitsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to