Skip to content

Commit 1fb4c2c

Browse files
committed
fix rubocop violation
1 parent cbd735b commit 1fb4c2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/winrm/shells/base.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ def close
9494
@shell_id = nil
9595
end
9696

97+
def self.finalize(connection_opts, transport, shell_id)
98+
proc { Thread.new { close_shell(connection_opts, transport, shell_id) } }
99+
end
100+
97101
protected
98102

99103
def send_command(_command, _arguments)
@@ -183,10 +187,6 @@ def add_finalizer
183187
def remove_finalizer
184188
ObjectSpace.undefine_finalizer(self)
185189
end
186-
187-
def self.finalize(connection_opts, transport, shell_id)
188-
proc { Thread.new { close_shell(connection_opts, transport, shell_id) } }
189-
end
190190
end
191191
end
192192
end

0 commit comments

Comments
 (0)