Fix Blocker/Critical sonar issues in so module
https://sonar.onap.org/component_issues?id=org.openecomp.so%3Aso#resolved=false|severities=BLOCKER
Fixed condition that always evaluate to "true"
Issue-Id:SO-118
Change-Id: Iceec8653cad6c2ca5dc148644c761075fe207a66
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
// String isDebugLogEnabled = "true";\r
try {\r
JSONObject jsonObj = new JSONObject(jsonStr);\r
- if (jsonObj != null) {\r
- return getJsonValueForKey(jsonObj, key);\r
- }\r
+ return getJsonValueForKey(jsonObj, key);\r
} catch (Exception e) {\r
msoLogger.debug("getJsonValueForKey(): unable to parse json to retrieve value for field=" + key + ". Exception was: " + e.toString(), e);\r
}\r