aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable/connection
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-11-01 07:32:04 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-11-01 07:32:04 +0900
commit146b1c2e3389bc70ea0b54abf7843fc1d6c8cd5f (patch)
treee6877230dc7e9f18af128f7bf73180be05f53c64 /actioncable/lib/action_cable/connection
parent3664e9cb798ea47a6ef10088b3fb2a7529b0dc9b (diff)
downloadrails-146b1c2e3389bc70ea0b54abf7843fc1d6c8cd5f.tar.gz
rails-146b1c2e3389bc70ea0b54abf7843fc1d6c8cd5f.tar.bz2
rails-146b1c2e3389bc70ea0b54abf7843fc1d6c8cd5f.zip
Enable `Style/RedundantReturn` rubocop rule, and fixed a couple more
Follow up of #31004.
Diffstat (limited to 'actioncable/lib/action_cable/connection')
-rw-r--r--actioncable/lib/action_cable/connection/client_socket.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/lib/action_cable/connection/client_socket.rb b/actioncable/lib/action_cable/connection/client_socket.rb
index ba33c8b982..10289ab55c 100644
--- a/actioncable/lib/action_cable/connection/client_socket.rb
+++ b/actioncable/lib/action_cable/connection/client_socket.rb
@@ -21,7 +21,7 @@ module ActionCable
return true if env["HTTP_X_FORWARDED_PROTO"] == "https"
return true if env["rack.url_scheme"] == "https"
- return false
+ false
end
CONNECTING = 0