Skip to content

Commit a63eb17

Browse files
committed
Minor refactoring. Delete unnecessary Lines.
1 parent 4969994 commit a63eb17

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Source/VarPyth.pas

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,10 +1599,7 @@ function TPythonVariantType.EvalPython(const V: TVarData;
15991599
PyDict_SetItemString(_KW, fNamedParams[i].Name, ArgAsPythonObject(fNamedParams[i].Index));
16001600

16011601
// call the func or method, with or without named parameters (KW)
1602-
if Assigned(_KW) then
1603-
Result := PyEval_CallObjectWithKeywords(_obj, _Args, _KW)
1604-
else
1605-
Result := PyEval_CallObjectWithKeywords(_obj, _Args, nil);
1602+
Result := PyEval_CallObjectWithKeywords(_obj, _Args, _KW);
16061603
CheckError(True);
16071604
finally
16081605
Py_XDecRef(_Args);

0 commit comments

Comments
 (0)