diff pkg/imports/dsr.go @ 4799:f32d086b5dbf

Removed the mechanical touch of the last commit.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 25 Oct 2019 18:40:37 +0200
parents ca6a5f722471
children 4847ac70103a
line wrap: on
line diff
--- a/pkg/imports/dsr.go	Fri Oct 25 18:25:38 2019 +0200
+++ b/pkg/imports/dsr.go	Fri Oct 25 18:40:37 2019 +0200
@@ -1,4 +1,3 @@
-// This is Free Software under GNU Affero General Public License v >= 3.0
 // without warranty, see README.md and license for details.
 //
 // SPDX-License-Identifier: AGPL-3.0-or-later
@@ -18,7 +17,6 @@
 	"context"
 	"database/sql"
 	"errors"
-	"strings"
 
 	"gemma.intevation.de/gemma/pkg/common"
 	"gemma.intevation.de/gemma/pkg/models"
@@ -31,12 +29,7 @@
 }
 
 func (dsr *DeleteSoundingResult) Description() (string, error) {
-
-	var descs []string
-
-	descs = append(descs, dsr.BottleneckId)
-	descs = append(descs, dsr.Date.Format(common.DateFormat))
-	return strings.Join(descs, "|"), nil
+	return dsr.BottleneckId + "|" + dsr.Date.Format(common.DateFormat), nil
 }
 
 // DSRJobKind is the import queue type identifier.