changeset 4851:faabfed7f0e9

Simplified code.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 19 Nov 2019 15:46:16 +0100
parents 18d5461bec5d
children 046a07a33b19
files pkg/imports/bn.go
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/bn.go	Tue Nov 19 12:45:52 2019 +0100
+++ b/pkg/imports/bn.go	Tue Nov 19 15:46:16 2019 +0100
@@ -159,12 +159,9 @@
 )`
 )
 
+// Description gives a short info about relevant facts of this import.
 func (bn *Bottleneck) Description() (string, error) {
-
-	var descs []string
-
-	descs = append(descs, bn.URL)
-	return strings.Join(descs, "|"), nil
+	return bn.URL, nil
 }
 
 type bnJobCreator struct{}