Skip to content

Commit

Permalink
Avoid warning about uninitialized ivar
Browse files Browse the repository at this point in the history
Co-authored-by: Farid Zakaria <farid.m.zakaria@gmail.com>
  • Loading branch information
pitr-ch and fzakaria committed Jun 4, 2021
1 parent 8fa5b95 commit 7e1dc82
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -42,7 +42,7 @@ def self.make_synchronized_on_rbx(klass)
private

def _mon_initialize
@_monitor = Monitor.new unless @_monitor # avoid double initialisation
@_monitor ||= Monitor.new # avoid double initialisation
end

def self.new(*args)
Expand Down

0 comments on commit 7e1dc82

Please sign in to comment.