Skip to content

Commit 5c4d1a4

Browse files
rubocop autocorrectable linting errors corrected
1 parent 8117076 commit 5c4d1a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/optimizely/event_builder.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get_common_params(project_config, user_id, attributes)
7878
)
7979
end
8080
# Append Bot Filtering Attribute
81-
if project_config.bot_filtering == true || project_config.bot_filtering == false
81+
if [true, false].include?(project_config.bot_filtering)
8282
visitor_attributes.push(
8383
entity_id: Optimizely::Helpers::Constants::CONTROL_ATTRIBUTES['BOT_FILTERING'],
8484
key: Optimizely::Helpers::Constants::CONTROL_ATTRIBUTES['BOT_FILTERING'],

0 commit comments

Comments
 (0)