Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Jan 25, 2024
1 parent a8ec1b7 commit d496d89
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ export class SafeDsPythonGenerator {
(parameter) => this.nodeMapper.callToParameterValue(expression, parameter)!,
);
// For a static function, the thisParam would be the class containing the function. We do not need to generate it in this case
const generateThisParam = !isSdsFunction(callable) || !callable.isStatic && thisParam;
const generateThisParam = !isSdsFunction(callable) || (!callable.isStatic && thisParam);
const containsOptionalArgs = sortedArgs.some((arg) =>
Parameter.isOptional(this.nodeMapper.argumentToParameter(arg)),
);
Expand All @@ -874,7 +874,9 @@ export class SafeDsPythonGenerator {
frame,
)}.${this.generateExpression(expression.receiver.member!, frame)}`
: this.generateExpression(expression.receiver, frame)
}, [${generateThisParam ? thisParam : ""}${generateThisParam && memoizedArgs.length > 0 ? ", " : ""}${joinTracedToNode(expression.argumentList, 'arguments')(
}, [${generateThisParam ? thisParam : ''}${
generateThisParam && memoizedArgs.length > 0 ? ', ' : ''
}${joinTracedToNode(expression.argumentList, 'arguments')(
memoizedArgs,
(arg) => this.generateExpression(arg, frame),
{
Expand Down

0 comments on commit d496d89

Please sign in to comment.