Skip to content

Commit 6d0245e

Browse files
committed
Correct the Region default value
1 parent 884c972 commit 6d0245e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/optimizely/config/datafile_project_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def initialize(datafile, logger, error_handler)
6868
@rollouts = config.fetch('rollouts', [])
6969
@send_flag_decisions = config.fetch('sendFlagDecisions', false)
7070
@integrations = config.fetch('integrations', [])
71-
@region = config.fetch('region', 'US')
71+
@region = 'US' if @region.nil? || @region.empty?
7272

7373
# Json type is represented in datafile as a subtype of string for the sake of backwards compatibility.
7474
# Converting it to a first-class json type while creating Project Config

0 commit comments

Comments
 (0)