Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduchesne committed Sep 8, 2024
1 parent 3187566 commit 5ab279b
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 @@ -167,8 +167,8 @@ func (p *Processor) extractObjectRangesFromDesugaredObjs(desugaredObjs []*ast.De
}
for !tmpStack.IsEmpty() {
node := tmpStack.Pop()
if _, ok := node.(*ast.DesugaredObject); ok {
desugaredObjs = append(desugaredObjs, node.(*ast.DesugaredObject))
if castNode, ok := node.(*ast.DesugaredObject); ok {
desugaredObjs = append(desugaredObjs, castNode)
break
}
}
Expand Down

0 comments on commit 5ab279b

Please sign in to comment.