From 6166c99b7719a110092800554b1efc73c1f46539 Mon Sep 17 00:00:00 2001 From: duohedron Date: Tue, 6 Oct 2020 09:05:55 +0200 Subject: [PATCH] Add Undefined status to invalid Polygon --- polygon.go | 1 + 1 file changed, 1 insertion(+) diff --git a/polygon.go b/polygon.go index 99a3c45a..5c7f564d 100644 --- a/polygon.go +++ b/polygon.go @@ -54,6 +54,7 @@ func parseFloat64(src []float64) (*Polygon, error) { return p, nil } if len(src)%2 != 0 { + p.Status = Undefined return p, errors.Errorf("invalid length for polygon: %v", len(src)) } p.Status = Present