changeset 4152:78ec61acf72e

Made 'golint' happier with imports package.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 02 Aug 2019 12:00:15 +0200
parents d12c2f4d3483
children 7c44af0b9370
files pkg/imports/dma.go pkg/imports/scheduled.go
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/dma.go	Fri Aug 02 11:56:48 2019 +0200
+++ b/pkg/imports/dma.go	Fri Aug 02 12:00:15 2019 +0200
@@ -25,8 +25,8 @@
 	"gemma.intevation.de/gemma/pkg/wfs"
 )
 
-// FairwayDimension is an import job to import
-// the fairway dimensions in form of polygon geometries
+// DistanceMarksAshore is an import job to import
+// the distance marks ashore in form of point geometries
 // and attribute data from a WFS service.
 type DistanceMarksAshore struct {
 	// URL the GetCapabilities URL of the WFS service.
--- a/pkg/imports/scheduled.go	Fri Aug 02 11:56:48 2019 +0200
+++ b/pkg/imports/scheduled.go	Fri Aug 02 12:00:15 2019 +0200
@@ -58,14 +58,14 @@
 		return 0, err
 	}
 	if cfg == nil {
-		return 0, fmt.Errorf("no config found for id %d.", id)
+		return 0, fmt.Errorf("no config found for id %d", id)
 	}
 
 	kind := JobKind(cfg.Kind)
 
 	ctor := ImportModelForJobKind(kind)
 	if ctor == nil {
-		return 0, fmt.Errorf("no constructor for kind '%s'.", cfg.Kind)
+		return 0, fmt.Errorf("no constructor for kind '%s'", cfg.Kind)
 	}
 
 	what := ctor()
@@ -77,7 +77,7 @@
 
 	converted := ConvertToInternal(kind, what)
 	if converted == nil {
-		return 0, fmt.Errorf("Conversion of model for kind '%s' failed.", kind)
+		return 0, fmt.Errorf("conversion of model for kind '%s' failed", kind)
 	}
 
 	var serialized string