aboutsummaryrefslogtreecommitdiff
path: root/user/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'user/state.go')
-rw-r--r--user/state.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/user/state.go b/user/state.go
index 12b1de3..a9a97f2 100644
--- a/user/state.go
+++ b/user/state.go
@@ -179,11 +179,10 @@ func (s *State) Copaing(guildID, copaingID string) (*CopaingCached, error) {
s.mu.RLock()
defer s.mu.RUnlock()
- raw, err := s.storage.Get(KeyCopaingCachedRaw(guildID, copaingID))
+ c, err := s.storage.Get(KeyCopaingCachedRaw(guildID, copaingID))
if err != nil {
return nil, err
}
- c := raw.(CopaingCached)
return &c, nil
}