Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Remove the unnecessary Errorf in Frame.document
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Dec 9, 2021
1 parent d81a65b commit 7b0b22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (f *Frame) document() (*ElementHandle, error) {
return nil, fmt.Errorf("frame document: cannot evaluate in main execution context: %w", err)
}
if result == nil {
return nil, fmt.Errorf("frame document: evaluate result is nil in main execution context: %w", err)
return nil, errors.New("frame document: evaluate result is nil in main execution context")
}

f.documentHandle = result.(*ElementHandle)
Expand Down

0 comments on commit 7b0b22a

Please sign in to comment.