aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng
diff options
context:
space:
mode:
authoranushadasari <danush10@in.ibm.com>2019-07-26 16:09:40 +0530
committeranushadasari <danush10@in.ibm.com>2019-07-26 16:11:01 +0530
commitf4df41d8ec1321d50b93368a407ad5c346889049 (patch)
tree0f400a551f54d08059cee54f688639b039844bc9 /ms/neng
parent93876b9e564e9d47ebe25245f315eb7342421c54 (diff)
Remove the literal "true" boolean value.
Redundant Boolean literals should be removed from expressions to improve readability. Issue-ID: CCSDK-1541 Change-Id: I64e50083b9b0fe40fa0ba32723e30adb0dbce08e Signed-off-by: anushadasari <danush10@in.ibm.com>
Diffstat (limited to 'ms/neng')
-rw-r--r--ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/validator/DbNameValidator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/validator/DbNameValidator.java b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/validator/DbNameValidator.java
index 131144b9..2071d85f 100644
--- a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/validator/DbNameValidator.java
+++ b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/validator/DbNameValidator.java
@@ -38,6 +38,6 @@ public class DbNameValidator {
*/
public boolean validate(String namingType, String name) throws Exception {
GeneratedName genName = genNameRepo.findUnReleased(namingType, name);
- return (genName == null) ? true : false;
+ return (genName == null);
}
}