From bb6e520ab56c808e5267ac3e1a160856832f2efd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <927625802@qq.com> Date: Wed, 8 Dec 2021 22:44:45 +0800 Subject: [PATCH] :art: delete useless code --- drivers/base/cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/cache.go b/drivers/base/cache.go index 4d72463b..5ba0b0a8 100644 --- a/drivers/base/cache.go +++ b/drivers/base/cache.go @@ -17,9 +17,9 @@ func SetCache(path string, obj interface{}, account *model.Account) error { } func GetCache(path string, account *model.Account) (interface{}, error) { - return conf.Cache.Get(conf.Ctx, fmt.Sprintf("%s", KeyCache(path, account))) + return conf.Cache.Get(conf.Ctx, KeyCache(path, account)) } func DeleteCache(path string, account *model.Account) error { - return conf.Cache.Delete(conf.Ctx, fmt.Sprintf("%s", KeyCache(path, account))) + return conf.Cache.Delete(conf.Ctx, KeyCache(path, account)) }