Skip to content

Commit

Permalink
Enhancement: remove unnecessary statement in destroy session (lynndyl…
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjaimem committed Oct 19, 2020
1 parent 0c369d6 commit 576d0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/devise_token_auth/sessions_controller.rb
Expand Up @@ -48,7 +48,7 @@ def create
def destroy
# remove auth instance variables so that after_action does not run
user = remove_instance_variable(:@resource) if @resource
client = @token.client if @token.client
client = @token.client
@token.clear!

if user && client && user.tokens[client]
Expand Down

0 comments on commit 576d0b0

Please sign in to comment.