diff --git a/pkg/openname/summarize.go b/pkg/openname/summarize.go index c5231a2..4e31673 100644 --- a/pkg/openname/summarize.go +++ b/pkg/openname/summarize.go @@ -19,9 +19,7 @@ type GPXSummarizer struct { func NewGPXSummarizer(rt *rtreego.Rtree) (*GPXSummarizer, error) { trans, err := osgb.NewOSTN15Transformer() if err != nil { - if err != nil { - return nil, err - } + return nil, err } return &GPXSummarizer{rt: rt, trans: trans}, nil }