Mercurial > gemma
diff pkg/models/cross.go @ 4847:4847ac70103a
Made staticcheck happy.
- error strings should not end with punctuation or a newline (ST1005)
- error strings should not be capitalized (ST1005)
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 18 Nov 2019 11:54:20 +0100 |
parents | a347468ea545 |
children | 1222b777f51f |
line wrap: on
line diff
--- a/pkg/models/cross.go Thu Nov 14 14:53:15 2019 +0100 +++ b/pkg/models/cross.go Mon Nov 18 11:54:20 2019 +0100 @@ -81,10 +81,10 @@ ) var ( - errNoGeoJSONFeature = errors.New("Not a valid GeoJSON feature") - errNoGeoJSONLineStringType = errors.New("Not a valid GeoJSON linestring type") - errTooLessComponents = errors.New("Too less components in coordinate") - errTooLessCoordinates = errors.New("Too less coordinates") + errNoGeoJSONFeature = errors.New("not a valid GeoJSON feature") + errNoGeoJSONLineStringType = errors.New("not a valid GeoJSON linestring type") + errTooLessComponents = errors.New("too less components in coordinate") + errTooLessCoordinates = errors.New("too less coordinates") ) func (lc *GeoJSONLineCoordinates) UnmarshalJSON(data []byte) error {