Skip to content

Commit

Permalink
fix rubocop violation
Browse files Browse the repository at this point in the history
  • Loading branch information
pcai committed Jun 10, 2024
1 parent cbd735b commit 1fb4c2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/winrm/shells/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def close
@shell_id = nil
end

def self.finalize(connection_opts, transport, shell_id)
proc { Thread.new { close_shell(connection_opts, transport, shell_id) } }
end

protected

def send_command(_command, _arguments)
Expand Down Expand Up @@ -183,10 +187,6 @@ def add_finalizer
def remove_finalizer
ObjectSpace.undefine_finalizer(self)
end

def self.finalize(connection_opts, transport, shell_id)
proc { Thread.new { close_shell(connection_opts, transport, shell_id) } }
end
end
end
end

0 comments on commit 1fb4c2c

Please sign in to comment.