Added interfacer, unconvert, goconst, nakedret, prealloc

This commit is contained in:
Kirill Muratov 2019-03-23 00:40:35 +03:00
parent ef4a805b02
commit be4c129168
2 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,12 @@ output:
linters:
enable:
- interfacer
- unconvert
- goconst
- misspell
- nakedret
- prealloc
disable:
- errcheck
- staticcheck

View File

@ -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)}
}
}