From 66d4c6243a04841079484fbc74ada8950ec90f92 Mon Sep 17 00:00:00 2001 From: Ray Miller Date: Fri, 17 Apr 2020 17:23:38 +0100 Subject: [PATCH] Remove extraneous nesting. --- pkg/openname/summarize.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }