Fixed SonarQube code smell 'Unnecessary use of boolean literals in conditional expression'.

This commit is contained in:
Akshay Joshi
2024-04-08 17:19:51 +05:30
committed by GitHub
parent c9345ad618
commit edec9adbfb
38 changed files with 104 additions and 108 deletions

View File

@@ -267,10 +267,10 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
funcObj.push({
'name': argName[index],
'type': argType[index],
'is_null': argData['is_null'] ? true : false,
'expr': argData['is_expression'] ? true : false,
'is_null': argData['is_null'],
'expr': argData['is_expression'],
'value': values,
'use_default': argData['use_default'] ? true : false,
'use_default': argData['use_default'],
'default_value': defValList[index],
'disable_use_default': isUnnamedParam ? defValList[index] == DEBUGGER_ARGS.NO_DEFAULT_VALUE : defValList[index] == DEBUGGER_ARGS.NO_DEFAULT,
});