Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
added strip as per PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vaughanbrittonsage committed Jan 25, 2018
1 parent 140ebc7 commit 191051b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache_store_redis/lib/cache_store_redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def with_client
def set(key, value, expires_in = 0)
k = build_key(key)

v = if value.nil? || (value.is_a?(String) && value.empty?)
v = if value.nil? || (value.is_a?(String) && value.strip.empty?)
nil
else
serialize(value)
Expand Down

0 comments on commit 191051b

Please sign in to comment.