Mercurial > gemma
changeset 5573:5d95f3b7c45f surveysperbottleneckid
Merged default into surveysperbottleneckid branch.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 20 Jul 2021 18:56:18 +0200 |
parents | 3b842e951317 (current diff) 93af8d1ea09f (diff) |
children | 271888ef85bc |
files | |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/imports/sr.go Tue Jul 20 17:07:51 2021 +0200 +++ b/pkg/imports/sr.go Tue Jul 20 18:56:18 2021 +0200 @@ -648,11 +648,10 @@ id int64 dummy uint32 lat, lon float64 + hull []byte ) - var hull []byte - - err = tx.QueryRowContext( + switch err := tx.QueryRowContext( ctx, insertHullSQL, m.Bottleneck, @@ -669,9 +668,7 @@ &lon, &dummy, &hull, - ) - - switch { + ); { case err == sql.ErrNoRows: return nil, fmt.Errorf( "no matching bottleneck of given name or time available: %v", err)