Skip to content

Commit

Permalink
Change usage of blank? to nil? to avoid errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sarmad90 committed May 13, 2020
1 parent 79f763d commit 7405338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oktakit/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def initialize(token: nil, access_token: nil, organization: nil, api_endpoint: n
raise ArgumentError, "Please provide either the organization or the api_endpoint argument"
end

if token.blank? && access_token.blank?
if token.nil? && access_token.nil?
raise ArgumentError, "Please provide either the token or the access_token argument"
end

Expand Down

0 comments on commit 7405338

Please sign in to comment.