We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2a7aa7 commit 98735fcCopy full SHA for 98735fc
lib/optimizely/config/datafile_project_config.rb
@@ -645,14 +645,12 @@ def get_holdouts_for_flag(flag_id)
645
return @flag_holdouts_map[flag_id] if @flag_holdouts_map.key?(flag_id)
646
647
# Prioritize global holdouts first
648
- active_holdouts = []
649
-
650
excluded = @excluded_holdouts[flag_id] || []
651
652
active_holdouts = if excluded.any?
653
- @global_holdouts.values.reject { |holdout| excluded.include?(holdout) }
+ @global_holdouts.reject { |holdout| excluded.include?(holdout) }
654
else
655
- @global_holdouts.values.dup
+ @global_holdouts.dup
656
end
657
658
# Append included holdouts
0 commit comments