Mercurial > gemma
diff pkg/imports/fa.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 | f2204f91d286 |
children | 6270951dda28 |
line wrap: on
line diff
--- a/pkg/imports/fa.go Tue Feb 20 21:28:56 2024 +0100 +++ b/pkg/imports/fa.go Tue Feb 20 22:22:57 2024 +0100 @@ -338,7 +338,7 @@ func doForFAs( ctx context.Context, - bnIds bottlenecks, + bnIDs bottlenecks, fas []*ifaf.FairwayAvailability, tx *sql.Tx, feedback Feedback, @@ -371,7 +371,7 @@ for _, faRes := range fas { // FIXME: The following test is propably unneccessary as already // done by DB constraints... [sw] - if !bnIds.contains(faRes.Bottleneck_id) { + if !bnIDs.contains(faRes.Bottleneck_id) { feedback.Warn("Bottleneck %s not found in database.", faRes.Bottleneck_id) continue } @@ -479,7 +479,7 @@ // Do executes the actual fairway availability import. func (fa *FairwayAvailability) Do( ctx context.Context, - importID int64, + _ int64, conn *sql.Conn, feedback Feedback, ) (interface{}, error) {