Skip to content

Commit

Permalink
Fix formatting + linting
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduchesne committed Sep 7, 2023
1 parent 6875d6b commit dcf5225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ast/processing/find_field.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.D
}

func flattenBinary(node ast.Node) []ast.Node {
if _, nodeIsBinary := node.(*ast.Binary); !nodeIsBinary {
binary, nodeIsBinary := node.(*ast.Binary)
if !nodeIsBinary {
return []ast.Node{node}
}
binary := node.(*ast.Binary)
return append(flattenBinary(binary.Right), flattenBinary(binary.Left)...)
}

Expand Down

0 comments on commit dcf5225

Please sign in to comment.