Skip to content

Commit 4794483

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

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,8 @@ def synchronizer_loop
343343
# Ensure we always set the ready event when exiting
344344
@ready_event.set
345345
@lock.synchronize do
346-
if @active_synchronizer
347-
@active_synchronizer.stop
348-
@active_synchronizer = nil
349-
end
346+
@active_synchronizer&.stop
347+
@active_synchronizer = nil
350348
end
351349
end
352350
end

0 commit comments

Comments
 (0)