Skip to content

Commit 72b9d89

Browse files
knarewskiandrehjr
andauthored
Use empty string directly instead of casting nil
Co-authored-by: André Luis Leal Cardoso Junior <andrehjr@gmail.com>
1 parent dd8e87e commit 72b9d89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/split/alternative.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def validate!
166166
end
167167

168168
def reset
169-
Split.redis.hmset key, "participant_count", 0, "completed_count", 0, "recorded_info", nil.to_s
169+
Split.redis.hmset key, "participant_count", 0, "completed_count", 0, "recorded_info", ""
170170
unless goals.empty?
171171
goals.each do |g|
172172
field = "completed_count:#{g}"

0 commit comments

Comments
 (0)