From 6999993fd20223573f56e32ad72acff1d2d5730d Mon Sep 17 00:00:00 2001 From: nesterfifa Date: Tue, 12 Dec 2023 12:34:04 +0100 Subject: [PATCH] [#782] locode: Fix imports, var init Signed-off-by: nesterfifa --- pkg/util/locode/db/continents/geojson/calls.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/util/locode/db/continents/geojson/calls.go b/pkg/util/locode/db/continents/geojson/calls.go index 6519b1aa8..bf85d3f87 100644 --- a/pkg/util/locode/db/continents/geojson/calls.go +++ b/pkg/util/locode/db/continents/geojson/calls.go @@ -4,12 +4,11 @@ import ( "fmt" "os" - "github.com/paulmach/orb/quadtree" - locodedb "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/locode/db" "github.com/paulmach/orb" "github.com/paulmach/orb/geojson" "github.com/paulmach/orb/planar" + "github.com/paulmach/orb/quadtree" ) const continentProperty = "Continent" @@ -92,7 +91,7 @@ func (db *DB) buildQuadtree() error { }) for _, feature := range db.features { - multiPolygon := make(orb.MultiPolygon, 0) + var multiPolygon orb.MultiPolygon if polygon, ok := feature.Geometry.(orb.Polygon); ok { multiPolygon = append(multiPolygon, polygon)