mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 05:42:35 +00:00
Added .rubocop.yml, sync.
This commit is contained in:
@@ -41,15 +41,15 @@ module TAC
|
||||
net_stats += "<b>Data Received:</b> #{client.data_received} bytes\n"
|
||||
|
||||
"<b>Status:</b> #{_status}\n\n#{net_stats}"
|
||||
elsif @connection && @connection.client && @connection.client.socket_error?
|
||||
"<b>Status:</b> #{_status}\n\n#{@connection.client.last_socket_error.to_s.chars.each_slice(80).to_a.map { |c| c.join }.join("\n")}"
|
||||
elsif @connection&.client && @connection.client.socket_error?
|
||||
"<b>Status:</b> #{_status}\n\n#{@connection.client.last_socket_error.to_s}"
|
||||
else
|
||||
"<b>Status:</b> #{_status}"
|
||||
end
|
||||
end
|
||||
|
||||
def connected?
|
||||
@connection && @connection.connected?
|
||||
@connection&.connected?
|
||||
end
|
||||
|
||||
def close
|
||||
|
||||
Reference in New Issue
Block a user