Skip to content

Commit

Permalink
fixup! Fix error on nil result on page.query
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Nov 16, 2023
1 parent 3a3683b commit 54a09ae
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion common/element_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,6 @@ func (h *ElementHandle) Query(selector string) (*ElementHandle, error) {
return nil, fmt.Errorf("querying selector %q: %w", selector, err)
}
if result == nil {
h.logger.Debugf("ElementHandle:Query:result:nil", "sel:%q", selector)
return nil, nil //nolint:nilnil
}
handle, ok := result.(JSHandleAPI)
Expand Down

0 comments on commit 54a09ae

Please sign in to comment.