aboutsummaryrefslogtreecommitdiff
path: root/pkg/ext
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-18 17:02:07 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-18 17:02:07 +0200
commit9ba05d26ee2382f3191e25ae7af5d462ba2a35e4 (patch)
tree5e7bd0e1c01b11bfeac7c59b2739ac1dcf68492d /pkg/ext
parentc8e1328164e9ffbd681c3c0e449f1e6b9856b896 (diff)
downloadlens-9ba05d26ee2382f3191e25ae7af5d462ba2a35e4.tar.gz
lens-9ba05d26ee2382f3191e25ae7af5d462ba2a35e4.tar.bz2
lens-9ba05d26ee2382f3191e25ae7af5d462ba2a35e4.zip
fix: Fix linter issues
Diffstat (limited to 'pkg/ext')
-rw-r--r--pkg/ext/gorm_logger.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/ext/gorm_logger.go b/pkg/ext/gorm_logger.go
index bfb26d2..bfbbb1e 100644
--- a/pkg/ext/gorm_logger.go
+++ b/pkg/ext/gorm_logger.go
@@ -18,7 +18,7 @@ func getFullMsg(msg string, data ...interface{}) string {
return fmt.Sprintf(msg, append([]interface{}{utils.FileWithLineNum()}, data...)...)
}
-func (self *Log) LogMode(log logger.LogLevel) logger.Interface {
+func (self *Log) LogMode(_ logger.LogLevel) logger.Interface {
return self
}
@@ -42,7 +42,7 @@ func (self *Log) Error(ctx context.Context, msg string, data ...interface{}) {
Error(fullMsg)
}
-func (self *Log) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) {
+func (self *Log) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), _ error) {
elapsed := time.Since(begin)
sql, _ := fc()
self.logrus.