fix code typo

pull/8/head
Xargin 2016-09-28 23:37:36 +08:00
parent 49d77fb296
commit a4866e3964
1 changed files with 0 additions and 3 deletions

View File

@ -163,9 +163,6 @@ type Memo struct {
// Get is concurrency-safe.
func (memo *Memo) Get(key string) (value interface{}, err error) {
res, ok := memo.cache[key]
if !ok {
res.value, res.err = memo.f(key)
memo.cache[key] = res
memo.mu.Lock()
res, ok := memo.cache[key]