diff pkg/imports/wg.go @ 5711:2dd155cc95ec revive-cleanup

Fix all revive issue (w/o machine generated stuff).
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 20 Feb 2024 22:22:57 +0100
parents 31973f6f5cca
children 6270951dda28
line wrap: on
line diff
--- a/pkg/imports/wg.go	Tue Feb 20 21:28:56 2024 +0100
+++ b/pkg/imports/wg.go	Tue Feb 20 22:22:57 2024 +0100
@@ -185,7 +185,7 @@
 // Do implements the actual import.
 func (wg *WaterwayGauge) Do(
 	ctx context.Context,
-	importID int64,
+	_ int64,
 	conn *sql.Conn,
 	feedback Feedback,
 ) (interface{}, error) {
@@ -595,10 +595,9 @@
 
 	if unchanged == len(gauges) {
 		return nil, UnchangedError("All gauges unchanged")
-	} else {
-		feedback.Info("Unchanged gauges: %d",
-			unchanged)
 	}
+	feedback.Info("Unchanged gauges: %d",
+		unchanged)
 
 	feedback.Info("Importing gauges took %s",
 		time.Since(start))