Skip to content

Commit daab9a2

Browse files
committed
Minor tweaks
1 parent 54ff671 commit daab9a2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/timeout.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def self.handle_timeout(message) # :nodoc:
5757
else
5858
Process.method(:clock_gettime)
5959
end
60-
6160
private_constant :GET_TIME
6261

6362
class State
@@ -89,10 +88,10 @@ def self.instance
8988

9089
::Timeout::RACTOR_SUPPORT = true # for test
9190
else
92-
@GLOBAL_STATE = State.new
91+
GLOBAL_STATE = State.new
9392

9493
def self.instance
95-
@GLOBAL_STATE
94+
GLOBAL_STATE
9695
end
9796
end
9897

@@ -143,7 +142,6 @@ def ensure_timeout_thread_created
143142
end
144143
end
145144
end
146-
147145
private_constant :State
148146

149147
class Request

0 commit comments

Comments
 (0)