Skip to content

Commit 0487292

Browse files
authored
Fix porting bug in isArgumentAndStartLineOverlapsExpressionBeingCalled (#1948)
1 parent 2a2e04d commit 0487292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/format/indent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func getActualIndentationForNode(current *ast.Node, parent *ast.Node, cuurentLin
127127
}
128128

129129
func isArgumentAndStartLineOverlapsExpressionBeingCalled(parent *ast.Node, child *ast.Node, childStartLine int, sourceFile *ast.SourceFile) bool {
130-
if !(ast.IsCallExpression(child) && slices.Contains(parent.AsCallExpression().Arguments.Nodes, child)) {
130+
if !(ast.IsCallExpression(parent) && slices.Contains(parent.AsCallExpression().Arguments.Nodes, child)) {
131131
return false
132132
}
133133
expressionOfCallExpressionEnd := parent.Expression().End()

0 commit comments

Comments
 (0)