# HG changeset patch # User Sascha L. Teichmann # Date 1626800178 -7200 # Node ID 5d95f3b7c45fcf0cfae14a98257bd91a057edd92 # Parent 3b842e951317389fb65dbd03ad183ca09a7af360# Parent 93af8d1ea09fe2516854eac6b6ca4ae35c7076d0 Merged default into surveysperbottleneckid branch. diff -r 3b842e951317 -r 5d95f3b7c45f pkg/imports/sr.go --- 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)