Commit 25bb0b55 by Karsten Weiss

Remove unused return value assignment (gosimple)

This fixes:
pkg/tsdb/sql_engine.go:54:6: should write version := engineCache.versions[dsInfo.Id] instead of version, _ := engineCache.versions[dsInfo.Id] (S1005)
parent de084e58
...@@ -51,7 +51,7 @@ func (e *DefaultSqlEngine) InitEngine(driverName string, dsInfo *models.DataSour ...@@ -51,7 +51,7 @@ func (e *DefaultSqlEngine) InitEngine(driverName string, dsInfo *models.DataSour
defer engineCache.Unlock() defer engineCache.Unlock()
if engine, present := engineCache.cache[dsInfo.Id]; present { if engine, present := engineCache.cache[dsInfo.Id]; present {
if version, _ := engineCache.versions[dsInfo.Id]; version == dsInfo.Version { if version := engineCache.versions[dsInfo.Id]; version == dsInfo.Version {
e.XormEngine = engine e.XormEngine = engine
return nil return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment