Skip to content

Commit bdbee0b

Browse files
committed
Rename local variable name current_user to verified_user [ci skip]
Assigning local variable named `current_user` in the condition is confusing.
1 parent b242796 commit bdbee0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actioncable/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ module ApplicationCable
5353

5454
private
5555
def find_verified_user
56-
if current_user = User.find_by(id: cookies.signed[:user_id])
57-
current_user
56+
if verified_user = User.find_by(id: cookies.signed[:user_id])
57+
verified_user
5858
else
5959
reject_unauthorized_connection
6060
end

0 commit comments

Comments
 (0)