Skip to content

Commit bb46c60

Browse files
Apply suggestion from @keelerm84
Co-authored-by: Matthew M. Keeler <[email protected]>
1 parent 929995d commit bb46c60

File tree

1 file changed

+1
-4
lines changed
  • lib/ldclient-rb/impl/data_system

1 file changed

+1
-4
lines changed

lib/ldclient-rb/impl/data_system/fdv2.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,8 @@ def initialize(sdk_key, config, data_system_config)
9191

9292
# (see DataSystem#start)
9393
def start
94-
return @ready_event if @disabled
95-
96-
@logger.warn { "[LDClient] Data system is disabled, SDK will return application-defined default values" } if @disabled
97-
9894
if @disabled
95+
@logger.warn { "[LDClient] Data system is disabled, SDK will return application-defined default values" }
9996
@ready_event.set
10097
return @ready_event
10198
end

0 commit comments

Comments
 (0)