Skip to content

Commit dcf5225

Browse files
Fix formatting + linting
1 parent 6875d6b commit dcf5225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/ast/processing/find_field.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.D
162162
}
163163

164164
func flattenBinary(node ast.Node) []ast.Node {
165-
if _, nodeIsBinary := node.(*ast.Binary); !nodeIsBinary {
165+
binary, nodeIsBinary := node.(*ast.Binary)
166+
if !nodeIsBinary {
166167
return []ast.Node{node}
167168
}
168-
binary := node.(*ast.Binary)
169169
return append(flattenBinary(binary.Right), flattenBinary(binary.Left)...)
170170
}
171171

0 commit comments

Comments
 (0)