Skip to content

Commit 9d6c626

Browse files
committed
fixed rubocop
1 parent 8ce0792 commit 9d6c626

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/splitclient-rb/engine/common/impressions_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def build_impression(matching_key, bucketing_key, split_name, treatment, params
3131
else # In OPTIMIZED mode we should track the total amount of evaluations and deduplicate the impressions.
3232
impression_data[:pt] = @impression_observer.test_and_set(impression_data)
3333

34-
@impression_counter.inc(split_name, impression_data[:m]) if impression_data[:pt] != nil
34+
@impression_counter.inc(split_name, impression_data[:m]) unless impression_data[:pt].nil?
3535
end
3636
rescue StandardError => e
3737
@config.log_found_exception(__method__.to_s, e)

0 commit comments

Comments
 (0)