Skip to content

Commit b3e8358

Browse files
redundant types
1 parent 2b5c60b commit b3e8358

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

world/location.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type Location struct {
3434
Node *TreeNode
3535
}
3636

37-
func NewLocation(ns string, id string, lat float64, lon float64) (*Location, error) {
37+
func NewLocation(ns, id string, lat, lon float64) (*Location, error) {
3838
if id == "" {
3939
validationOps.Inc()
4040
return nil, LocationErrorRequiredId
@@ -59,7 +59,7 @@ func NewLocation(ns string, id string, lat float64, lon float64) (*Location, err
5959
return loc, nil
6060
}
6161

62-
func (*Location) init(ns string, id string, lat float64, lon float64) (*Location, error) {
62+
func (*Location) init(ns, id string, lat, lon float64) (*Location, error) {
6363
if id == "" {
6464
validationOps.Inc()
6565
return nil, LocationErrorRequiredId
@@ -84,7 +84,7 @@ func (*Location) init(ns string, id string, lat float64, lon float64) (*Location
8484
return loc, nil
8585
}
8686

87-
func (l *Location) Update(lat float64, lon float64) error {
87+
func (l *Location) Update(lat, lon float64) error {
8888
err := validateLatLon(lat, lon)
8989

9090
if err != nil {
@@ -98,7 +98,7 @@ func (l *Location) Update(lat float64, lon float64) error {
9898
return nil
9999
}
100100

101-
func validateLatLon(lat float64, lon float64) error {
101+
func validateLatLon(lat, lon float64) error {
102102

103103
if lat < -90 || lat > 90 {
104104
validationOps.Inc()

0 commit comments

Comments
 (0)