summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThugutla sailakshmi <tsaila10@in.ibm.com>2019-10-21 19:33:59 +0530
committerThugutla sailakshmi <tsaila10@in.ibm.com>2019-10-21 19:35:11 +0530
commit850efa508aac7251db71cc19f59c0ba8cb951bfa (patch)
treed2585c43066b39ed1c247ee0413542de9ba4b4c3
parente6f5dc2031f05882001449ff6e4b405801230e3b (diff)
Function.java - Extract the assignment
Issue-ID: AAF-876 Change-Id: I1a9d0952df7d99fd88541d064b7581b2b4a725e0 Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
-rw-r--r--auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/hl/Function.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/hl/Function.java b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/hl/Function.java
index d8096188..89643c4d 100644
--- a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/hl/Function.java
+++ b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/hl/Function.java
@@ -297,7 +297,8 @@ public class Function {
}
// VALIDATIONS done... Add NS
- if ((rq = q.nsDAO().create(trans, namespace.data())).notOK()) {
+ rq = q.nsDAO().create(trans, namespace.data());
+ if (rq.notOK()) {
return Result.err(rq);
}