Skip to content

Commit

Permalink
Minor tweak to local cache change method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Sep 16, 2012
1 parent 35defdc commit 47c8c02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/flipper/adapter.rb
Expand Up @@ -114,13 +114,11 @@ def local_cache_read(key)
end

def local_cache_change(key)
result = yield
if using_local_cache?
result = yield
local_cache.delete(key.to_s)
result
else
yield
end
result
end
end
end

0 comments on commit 47c8c02

Please sign in to comment.