From be4c129168493c20d8075aa57b4f77e69fed8361 Mon Sep 17 00:00:00 2001 From: Kirill Muratov Date: Sat, 23 Mar 2019 00:40:35 +0300 Subject: [PATCH] Added interfacer, unconvert, goconst, nakedret, prealloc --- .golangci.yml | 5 +++++ database/clickhouse/clickhouse.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 81981d7..8132880 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,7 +7,12 @@ output: linters: enable: + - interfacer + - unconvert + - goconst - misspell + - nakedret + - prealloc disable: - errcheck - staticcheck diff --git a/database/clickhouse/clickhouse.go b/database/clickhouse/clickhouse.go index 7362601..d14e1c5 100644 --- a/database/clickhouse/clickhouse.go +++ b/database/clickhouse/clickhouse.go @@ -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)} } }