Skip to content

Commit

Permalink
Merge pull request #61 from ResultadosDigitais/fix/blank-for-nil
Browse files Browse the repository at this point in the history
Corrige chamada do método blank? para nil
  • Loading branch information
Almir Mendes authored Oct 7, 2020
2 parents 6275f68 + d416d44 commit 2b95822
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.5.1

- Fixed checking `empty?` for nil values inside of InvalidRefreshToken class

## 2.5.0

- InvalidRefreshToken error added. This error will be raised when the refresh token is invalid or it was revoked. When you get this error, you can safely disconnect the user from RD Station.
Expand Down
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
2 changes: 1 addition & 1 deletion lib/rdstation/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RDStation
VERSION = '2.5.0'.freeze
VERSION = '2.5.1'.freeze
end

0 comments on commit 2b95822

Please sign in to comment.