Skip to content

Commit

Permalink
typechecking fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Mar 4, 2024
1 parent c99bd95 commit e67b976
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/datadog/ci/transport/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ def initialize(api: nil, dd_env: nil)

def fetch_library_settings(service:)
# TODO: return error response if api is not present
return {} unless @api
api = @api
return {} unless api
# TODO: id generation
# TODO: runtime information is required for payload
# TODO: return error response - use some wrapper from ddtrace as an example
@api.api_request(
api.api_request(
path: Ext::Transport::DD_API_SETTINGS_PATH,
payload: settings_payload(service: service)
)
Expand Down

0 comments on commit e67b976

Please sign in to comment.