Skip to content

Commit b13ef53

Browse files
committed
MutexLockableObject/MonitorLockableObject never have any arguments
* The super initialize does not accept any.
1 parent 47af242 commit b13ef53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class MutexLockableObject < AbstractLockableObject
2626

2727
safe_initialization!
2828

29-
def initialize(*defaults)
30-
super(*defaults)
29+
def initialize
30+
super()
3131
@__Lock__ = ::Mutex.new
3232
@__Condition__ = ::ConditionVariable.new
3333
end
@@ -61,8 +61,8 @@ class MonitorLockableObject < AbstractLockableObject
6161

6262
safe_initialization!
6363

64-
def initialize(*defaults)
65-
super(*defaults)
64+
def initialize
65+
super()
6666
@__Lock__ = ::Monitor.new
6767
@__Condition__ = @__Lock__.new_cond
6868
end

0 commit comments

Comments
 (0)