Skip to content

Commit

Permalink
Remove forgotten NewGeolocation
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Nov 7, 2024
1 parent e132b27 commit 1255a92
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions common/browser_context_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ type Geolocation struct {
Accuracy float64 `js:"accuracy"`
}

// NewGeolocation creates a new instance of Geolocation.
func NewGeolocation() *Geolocation {
return &Geolocation{}
}

// Validate validates the [Geolocation].
func (g *Geolocation) Validate() error {
if g.Longitude < -180 || g.Longitude > 180 {
Expand Down

0 comments on commit 1255a92

Please sign in to comment.