mirror of https://github.com/status-im/migrate.git
Added interfacer, unconvert, goconst, nakedret, prealloc
This commit is contained in:
parent
ef4a805b02
commit
be4c129168
|
@ -7,7 +7,12 @@ output:
|
|||
|
||||
linters:
|
||||
enable:
|
||||
- interfacer
|
||||
- unconvert
|
||||
- goconst
|
||||
- misspell
|
||||
- nakedret
|
||||
- prealloc
|
||||
disable:
|
||||
- errcheck
|
||||
- staticcheck
|
||||
|
|
|
@ -110,7 +110,7 @@ func (ch *ClickHouse) Run(r io.Reader) error {
|
|||
if tq == "" {
|
||||
continue
|
||||
}
|
||||
if _, err := ch.conn.Exec(string(q)); err != nil {
|
||||
if _, err := ch.conn.Exec(q); err != nil {
|
||||
return database.Error{OrigErr: err, Err: "migration failed", Query: []byte(q)}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue