Skip to content

Commit

Permalink
Stop attempting to strip the namespace from a key multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
laserlemon committed Mar 24, 2012
1 parent db7db87 commit 062c88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dalli/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def key_with_namespace(key)
end

def key_without_namespace(key)
@options[:namespace] ? key.gsub(%r(\A#{@options[:namespace]}:), '') : key
@options[:namespace] ? key.sub(%r(\A#{@options[:namespace]}:), '') : key
end

def normalize_options(opts)
Expand Down

0 comments on commit 062c88e

Please sign in to comment.