Skip to content

Commit

Permalink
fix: implicit return
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfigueira committed May 28, 2024
1 parent 2ec72b7 commit 86b25d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/chroma/api_operations/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def execute_request(method, url, params = {}, options = {})
request.content_type = "application/json"
request.body = params.to_json if params.size > 0
request.basic_auth(uri.user, uri.password) if !uri.user.nil?
request['X-Chroma-Token'] = ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil) if ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil)
request['X-Chroma-Token'] = ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil) if ENV["CHROMA_SERVER_AUTHN_CREDENTIALS"]
request
end
end

Expand Down

0 comments on commit 86b25d1

Please sign in to comment.