Skip to content

Commit

Permalink
Merge pull request #104 from ZhengHe-MD/dev/zhenghe3119/sutil-cache-fix
Browse files Browse the repository at this point in the history
cache: remove redeclaration of data
  • Loading branch information
kylin2017 authored Sep 25, 2019
2 parents 8d925f5 + 4737c9e commit 4f39d98
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cache/value/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ func (m *Cache) getValueFromCache(ctx context.Context, key, value interface{}) e
func (m *Cache) loadValueToCache(ctx context.Context, key interface{}) (data []byte, err error) {
fun := "Cache.loadValueToCache -->"

var data []byte
value, err := m.load(ctx, key)
if err != nil {
slog.Warnf(ctx, "%s load err, cache key:%v err:%v", fun, key, err)
Expand Down

0 comments on commit 4f39d98

Please sign in to comment.