We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ce0792 commit 9d6c626Copy full SHA for 9d6c626
1 file changed
lib/splitclient-rb/engine/common/impressions_manager.rb
@@ -31,7 +31,7 @@ def build_impression(matching_key, bucketing_key, split_name, treatment, params
31
else # In OPTIMIZED mode we should track the total amount of evaluations and deduplicate the impressions.
32
impression_data[:pt] = @impression_observer.test_and_set(impression_data)
33
34
- @impression_counter.inc(split_name, impression_data[:m]) if impression_data[:pt] != nil
+ @impression_counter.inc(split_name, impression_data[:m]) unless impression_data[:pt].nil?
35
end
36
rescue StandardError => e
37
@config.log_found_exception(__method__.to_s, e)
0 commit comments