Skip to content

Commit f800262

Browse files
committed
Rubocop
1 parent 0319bfc commit f800262

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.rubocop_todo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2019-04-06 10:51:06 -0400 using RuboCop version 0.61.1.
3+
# on 2019-04-06 18:44:21 -0400 using RuboCop version 0.61.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new

lib/slack/real_time/concurrency/async.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ class Socket < Slack::RealTime::Socket
1515

1616
def start_async(client)
1717
@reactor = ::Async::Reactor.new
18-
18+
1919
Thread.new do
2020
@reactor.run do |task|
2121
if client.run_ping?
2222
task.async do |subtask|
23-
subtask.annotate "client keep-alive"
24-
25-
while true
23+
subtask.annotate 'client keep-alive'
24+
25+
loop do
2626
subtask.sleep client.websocket_ping
2727
client.run_ping!
2828
end
2929
end
3030
end
31-
31+
3232
task.async do |subtask|
33-
subtask.annotate "client run-loop"
33+
subtask.annotate 'client run-loop'
3434
client.run_loop
3535
end
3636
end

lib/slack/real_time/socket.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def connect!
4040

4141
def disconnect!
4242
@driver.close
43-
self.close
43+
close
4444
end
4545

4646
def connected?

0 commit comments

Comments
 (0)