remove unused var and added copy comment

This commit is contained in:
Pascal Fischer
2025-10-13 16:45:17 +02:00
parent f0e8cd578d
commit 488afe4082
3 changed files with 10 additions and 1 deletions
+5
View File
@@ -1,3 +1,7 @@
/*
Example code copied from https://github.com/go-gorm/caches
*/
package cache
import (
@@ -21,6 +25,7 @@ func (c *MemoryCacher) Get(ctx context.Context, key string, q *caches.Query[any]
c.init()
val, ok := c.store.Load(key)
if !ok {
//nolint
return nil, nil
}