Skip to content

Commit 86574b2

Browse files
committed
Fix last lint problems
1 parent f94b9e7 commit 86574b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/optimizely/config/datafile_project_config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ def initialize(datafile, logger, error_handler)
209209
end
210210

211211
# Adding Holdout variations in variation id and key maps
212-
return [] unless @holdouts && !@holdouts.empty?
213-
212+
return unless @holdouts && !@holdouts.empty?
213+
214214
@holdouts.each do |holdout|
215215
holdout_key = holdout['key']
216216
holdout_id = holdout['id']

spec/decision_service_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@
15081508
h['includedFlags'].nil? || h['includedFlags'].empty?
15091509
end
15101510

1511-
if !global_holdouts.empty?
1511+
unless global_holdouts.empty?
15121512
user_context = project_with_holdouts.create_user_context('testUserId', {})
15131513

15141514
_result = decision_service_with_holdouts.get_variations_for_feature_list(

0 commit comments

Comments
 (0)