Skip to content

Commit 3b0e2ec

Browse files
committed
Fixed deprecated param value
1 parent 7b6e192 commit 3b0e2ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/splitclient-rb/clients/split_client.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def initialize(sdk_key, repositories, status_manager, config, impressions_manage
3535
end
3636

3737
def get_treatment(
38-
key, split_name, attributes = {}, evaluation_options = nil, split_data = nil, store_impressions = true,
38+
key, split_name, attributes = {}, evaluation_options = nil, split_data = nil, store_impressions = nil,
3939
multiple = false, evaluator = nil
4040
)
4141
log_deprecated_warning(GET_TREATMENT, evaluator, 'evaluator')
@@ -46,7 +46,7 @@ def get_treatment(
4646
end
4747

4848
def get_treatment_with_config(
49-
key, split_name, attributes = {}, evaluation_options = nil, split_data = nil, store_impressions = true,
49+
key, split_name, attributes = {}, evaluation_options = nil, split_data = nil, store_impressions = nil,
5050
multiple = false, evaluator = nil
5151
)
5252
log_deprecated_warning(GET_TREATMENT, evaluator, 'evaluator')
@@ -333,7 +333,7 @@ def treatments(key, feature_flag_names, attributes = {}, evaluation_options = ni
333333
# @param split_data [Hash] split data, when provided this method doesn't fetch splits_repository for the data
334334
# @param store_impressions [Boolean] impressions aren't stored if this flag is false
335335
# @return [String/Hash] Treatment as String or Hash of treatments in case of array of features
336-
def treatment(key, feature_flag_name, attributes = {}, split_data = nil, store_impressions = true,
336+
def treatment(key, feature_flag_name, attributes = {}, split_data = nil, store_impressions = nil,
337337
calling_method = 'get_treatment', multiple = false, evaluation_options = nil)
338338

339339
log_deprecated_warning(calling_method, split_data, 'split_data')

0 commit comments

Comments
 (0)