Skip to content

Commit

Permalink
Use empty string directly instead of casting nil
Browse files Browse the repository at this point in the history
Co-authored-by: André Luis Leal Cardoso Junior <andrehjr@gmail.com>
  • Loading branch information
knarewski and andrehjr authored Sep 12, 2022
1 parent dd8e87e commit 72b9d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/split/alternative.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def validate!
end

def reset
Split.redis.hmset key, "participant_count", 0, "completed_count", 0, "recorded_info", nil.to_s
Split.redis.hmset key, "participant_count", 0, "completed_count", 0, "recorded_info", ""
unless goals.empty?
goals.each do |g|
field = "completed_count:#{g}"
Expand Down

0 comments on commit 72b9d89

Please sign in to comment.