lib/sourcescrub/client.rb in sourcescrub-0.0.3 vs lib/sourcescrub/client.rb in sourcescrub-0.0.4
- old
+ new
@@ -10,10 +10,10 @@
include Utils::Request
attr_accessor :token
def headers
- @token || authenticate
+ authenticate if @token.nil?
{ 'Authorization' => "Bearer #{@token}" }
end
def company(domain, args = {})