comparison pkg/imports/st.go @ 4177:8b75ac5e243e

Made 'staticcheck' happy with pgxutils package.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 05 Aug 2019 17:16:46 +0200
parents c489c78ed525
children a376351d2774
comparison
equal deleted inserted replaced
4176:c9315a6eb2c2 4177:8b75ac5e243e
157 } 157 }
158 158
159 feedback.Info("Storing stretch '%s'", st.Name) 159 feedback.Info("Storing stretch '%s'", st.Name)
160 160
161 if len(st.Countries) == 0 { 161 if len(st.Countries) == 0 {
162 return nil, errors.New("List of countries is empty") 162 return nil, errors.New("list of countries is empty")
163 } 163 }
164 164
165 tx, err := conn.BeginTx(ctx, nil) 165 tx, err := conn.BeginTx(ctx, nil)
166 if err != nil { 166 if err != nil {
167 return nil, err 167 return nil, err