Skip to content

Commit f9e4be4

Browse files
committed
Fix lint issues
1 parent 2c0732b commit f9e4be4

File tree

3 files changed

+25
-26
lines changed

3 files changed

+25
-26
lines changed

lib/optimizely/config/datafile_project_config.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def initialize(datafile, logger, error_handler)
130130
holdout['excludedFlags']&.each do |flag_id|
131131
@excluded_holdouts[flag_id] ||= []
132132
@excluded_holdouts[flag_id] << holdout
133-
end
134133
end
135134
else
136135
holdout['includedFlags'].each do |flag_id|

lib/optimizely/config_manager/http_project_config_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def get_datafile_url(sdk_key, url, url_template)
326326
unless url
327327
url_template ||= @access_token.nil? ? Helpers::Constants::CONFIG_MANAGER['DATAFILE_URL_TEMPLATE'] : Helpers::Constants::CONFIG_MANAGER['AUTHENTICATED_DATAFILE_URL_TEMPLATE']
328328
begin
329-
return (url_template % sdk_key)
329+
return url_template % sdk_key
330330
rescue
331331
error_msg = "Invalid url_template #{url_template} provided."
332332
@logger.log(Logger::ERROR, error_msg)

spec/spec_params.rb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,30 +1940,30 @@ module OptimizelySpec
19401940
CONFIG_DICT_WITH_INTEGRATIONS_JSON = JSON.dump(CONFIG_DICT_WITH_INTEGRATIONS)
19411941

19421942
CONFIG_BODY_WITH_HOLDOUTS = VALID_CONFIG_BODY.merge({
1943-
'holdouts' => [
1944-
{
1945-
'id' => 'holdout_1',
1946-
'key' => 'global_holdout',
1947-
'status' => 'Running',
1948-
'includedFlags' => [],
1949-
'excludedFlags' => ['553339214']
1950-
},
1951-
{
1952-
'id' => 'holdout_2',
1953-
'key' => 'specific_holdout',
1954-
'status' => 'Running',
1955-
'includedFlags' => ['594089'],
1956-
'excludedFlags' => []
1957-
},
1958-
{
1959-
'id' => 'holdout_3',
1960-
'key' => 'inactive_holdout',
1961-
'status' => 'Inactive',
1962-
'includedFlags' => ['553339214'],
1963-
'excludedFlags' => []
1964-
}
1965-
]
1966-
}).freeze
1943+
'holdouts' => [
1944+
{
1945+
'id' => 'holdout_1',
1946+
'key' => 'global_holdout',
1947+
'status' => 'Running',
1948+
'includedFlags' => [],
1949+
'excludedFlags' => ['553339214']
1950+
},
1951+
{
1952+
'id' => 'holdout_2',
1953+
'key' => 'specific_holdout',
1954+
'status' => 'Running',
1955+
'includedFlags' => ['594089'],
1956+
'excludedFlags' => []
1957+
},
1958+
{
1959+
'id' => 'holdout_3',
1960+
'key' => 'inactive_holdout',
1961+
'status' => 'Inactive',
1962+
'includedFlags' => ['553339214'],
1963+
'excludedFlags' => []
1964+
}
1965+
]
1966+
}).freeze
19671967

19681968
CONFIG_BODY_WITH_HOLDOUTS_JSON = JSON.dump(CONFIG_BODY_WITH_HOLDOUTS).freeze
19691969

0 commit comments

Comments
 (0)