Skip to content

Commit 1ac62b0

Browse files
fix: rubocop corrections
1 parent d1d9ff4 commit 1ac62b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/optimizely.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def create_optimizely_decision(user_context, flag_key, decision, reasons, decide
219219
@notification_center.send_notifications(
220220
NotificationCenter::NOTIFICATION_TYPES[:DECISION],
221221
Helpers::Constants::DECISION_NOTIFICATION_TYPES['FLAG'],
222-
user_id, (attributes || {}),
222+
user_id, attributes || {},
223223
flag_key: flag_key,
224224
enabled: feature_enabled,
225225
variables: all_variables,
@@ -632,7 +632,7 @@ def is_feature_enabled(feature_flag_key, user_id, attributes = nil)
632632
@notification_center.send_notifications(
633633
NotificationCenter::NOTIFICATION_TYPES[:DECISION],
634634
Helpers::Constants::DECISION_NOTIFICATION_TYPES['FEATURE'],
635-
user_id, (attributes || {}),
635+
user_id, attributes || {},
636636
feature_key: feature_flag_key,
637637
feature_enabled: feature_enabled,
638638
source: source_string,
@@ -860,7 +860,7 @@ def get_all_feature_variables(feature_flag_key, user_id, attributes = nil)
860860

861861
@notification_center.send_notifications(
862862
NotificationCenter::NOTIFICATION_TYPES[:DECISION],
863-
Helpers::Constants::DECISION_NOTIFICATION_TYPES['ALL_FEATURE_VARIABLES'], user_id, (attributes || {}),
863+
Helpers::Constants::DECISION_NOTIFICATION_TYPES['ALL_FEATURE_VARIABLES'], user_id, attributes || {},
864864
feature_key: feature_flag_key,
865865
feature_enabled: feature_enabled,
866866
source: source_string,
@@ -1040,7 +1040,7 @@ def get_variation_with_config(experiment_key, user_id, attributes, config)
10401040
end
10411041
@notification_center.send_notifications(
10421042
NotificationCenter::NOTIFICATION_TYPES[:DECISION],
1043-
decision_notification_type, user_id, (attributes || {}),
1043+
decision_notification_type, user_id, attributes || {},
10441044
experiment_key: experiment_key,
10451045
variation_key: variation_key
10461046
)
@@ -1115,7 +1115,7 @@ def get_feature_variable_for_type(feature_flag_key, variable_key, variable_type,
11151115

11161116
@notification_center.send_notifications(
11171117
NotificationCenter::NOTIFICATION_TYPES[:DECISION],
1118-
Helpers::Constants::DECISION_NOTIFICATION_TYPES['FEATURE_VARIABLE'], user_id, (attributes || {}),
1118+
Helpers::Constants::DECISION_NOTIFICATION_TYPES['FEATURE_VARIABLE'], user_id, attributes || {},
11191119
feature_key: feature_flag_key,
11201120
feature_enabled: feature_enabled,
11211121
source: source_string,

0 commit comments

Comments
 (0)