Permalink
Browse files

Remove unnecessary method calls

  • Loading branch information...
1 parent 0edb663 commit ca906d4391f24f0fef007cb62edad455f88c75c0 @dekart committed Jun 10, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/facebooker2/rails/controller.rb
@@ -47,16 +47,14 @@ def fetch_client_and_user
def fetch_client_and_user_from_cookie
- hash_data = fb_cookie_hash
-
- if hash_data and fb_cookie_signature_correct?(fb_cookie_hash, Facebooker2.secret)
+ if hash_data = fb_cookie_hash and fb_cookie_signature_correct?(hash_data, Facebooker2.secret)
fb_create_user_and_client(
hash_data["access_token"],
hash_data["expires"],
hash_data["uid"]
)
- fb_cookie_hash["sig"]
+ hash_data["sig"]
end
end

0 comments on commit ca906d4

Please sign in to comment.