Skip to content

Commit

Permalink
Fix blank? method called for nil
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nd3s committed Oct 7, 2020
1 parent 6275f68 commit e8358e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rdstation/error_handler/invalid_refresh_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def initialize(errors)
end

def raise_error
return if invalid_refresh_token_error.empty?
return unless invalid_refresh_token_error

raise RDStation::Error::InvalidRefreshToken, invalid_refresh_token_error
end

Expand Down

0 comments on commit e8358e0

Please sign in to comment.