Skip to content

Commit

Permalink
run go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Jan 17, 2024
1 parent 41c74c2 commit dcd45be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmds/mcla_wasm/errdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ func (s *JsStorageCache) Get(key string) string {
if ch != nil {
<-ch
}
item := s.storage.Call("getItem", s.prefix + key)
item := s.storage.Call("getItem", s.prefix+key)
if item.Truthy() {
return item.String()
}
return ""
}

func (s *JsStorageCache) Set(key string, value string) {
s.storage.Call("setItem", s.prefix + key, value)
s.storage.Call("setItem", s.prefix+key, value)
}

func (s *JsStorageCache) Remove(key string) {
s.storage.Call("removeItem", s.prefix + key)
s.storage.Call("removeItem", s.prefix+key)
}

func (s *JsStorageCache) GetOrSet(key string, setter func() string) string {
Expand Down

0 comments on commit dcd45be

Please sign in to comment.