Skip to content

Commit

Permalink
Reviewed Changes :
Browse files Browse the repository at this point in the history
1) Added || statement in new line
2) Extra new line at the end of the file get_sp_var.py
  • Loading branch information
Akash-Anand0744 committed Aug 18, 2021
1 parent 1b8c3b7 commit bdb0cc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ private Value doEvaluateExpressionJython(String expr,
Map<String, Serializable> jythonContext = createJythonContext(context);

boolean systemPropertiesDefined = false;
if (functionDependencies.contains(ScriptFunction.GET_SYSTEM_PROPERTY) ||
functionDependencies.contains(ScriptFunction.GET_SP_VAR)) {
if (functionDependencies.contains(ScriptFunction.GET_SYSTEM_PROPERTY)
|| functionDependencies.contains(ScriptFunction.GET_SP_VAR)) {
systemPropertiesDefined = true;
}

Expand All @@ -100,8 +100,8 @@ private Value doEvaluateExpressionExternalPython(String expr,
Set<ScriptFunction> functionDependencies) {
Map<String, Serializable> pythonContext = createExternalPythonContext(context);
boolean systemPropertiesDefined = false;
if (functionDependencies.contains(ScriptFunction.GET_SYSTEM_PROPERTY) ||
functionDependencies.contains(ScriptFunction.GET_SP_VAR)) {
if (functionDependencies.contains(ScriptFunction.GET_SYSTEM_PROPERTY)
|| functionDependencies.contains(ScriptFunction.GET_SP_VAR)) {
systemPropertiesDefined = true;
}
if (systemPropertiesDefined) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ def get_sp_var(key):
value1 = globals().get(key)
accessed(value1)
property_value = sys_prop.get(value1)
return property_value
return property_value

0 comments on commit bdb0cc8

Please sign in to comment.