Skip to content

Commit 2087824

Browse files
committed
no golangci-lint that is not a helpful suggestion
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 8127394 commit 2087824

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/sql_postgres_with_schema.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ func (d *postgresSchemaDriver) Open(name string) (driver.Conn, error) {
5050
// driver.String.ConvertValue will never return err for string
5151
schemaValue, _ := driver.String.ConvertValue(setting.Database.Schema)
5252

53-
_, err = stmt.Exec([]driver.Value{schemaValue})
53+
// golangci lint is incorrect here - there is no benefit to using stmt.ExecWithContext here
54+
_, err = stmt.Exec([]driver.Value{schemaValue}) //nolint
5455
if err != nil {
5556
_ = conn.Close()
5657
return nil, err

0 commit comments

Comments
 (0)