We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8117076 commit 5c4d1a4Copy full SHA for 5c4d1a4
lib/optimizely/event_builder.rb
@@ -78,7 +78,7 @@ def get_common_params(project_config, user_id, attributes)
78
)
79
end
80
# Append Bot Filtering Attribute
81
- if project_config.bot_filtering == true || project_config.bot_filtering == false
+ if [true, false].include?(project_config.bot_filtering)
82
visitor_attributes.push(
83
entity_id: Optimizely::Helpers::Constants::CONTROL_ATTRIBUTES['BOT_FILTERING'],
84
key: Optimizely::Helpers::Constants::CONTROL_ATTRIBUTES['BOT_FILTERING'],
0 commit comments