diff pkg/imports/wp.go @ 2168:b868cb653c4d

Import queue: The job kind parameter when creating a new job from a string was never used.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 08 Feb 2019 15:39:17 +0100
parents f0641b5ad065
children b27edd1f2353
line wrap: on
line diff
--- a/pkg/imports/wp.go	Fri Feb 08 15:30:16 2019 +0100
+++ b/pkg/imports/wp.go	Fri Feb 08 15:39:17 2019 +0100
@@ -61,7 +61,7 @@
 	RegisterJobCreator(WPJobKind, wpJobCreator{})
 }
 
-func (wpJobCreator) Create(_ JobKind, data string) (Job, error) {
+func (wpJobCreator) Create(data string) (Job, error) {
 	wp := new(WaterwayProfiles)
 	if err := common.FromJSONString(data, wp); err != nil {
 		return nil, err