From f4df41d8ec1321d50b93368a407ad5c346889049 Mon Sep 17 00:00:00 2001 From: anushadasari Date: Fri, 26 Jul 2019 16:09:40 +0530 Subject: 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 --- .../org/onap/ccsdk/apps/ms/neng/core/validator/DbNameValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ms/neng/src/main') 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); } } -- cgit 1.2.3-korg