Skip to content

SentryHttpClientFactory option ignored? #3210

@vaind

Description

The following code looks like a return is missing:

private LazyHttpTransport CreateHttpTransport()
{
if (_options.SentryHttpClientFactory is not null)
{
_options.LogDebug(
"Using ISentryHttpClientFactory set through options: {0}.",
_options.SentryHttpClientFactory.GetType().Name);
}
return new LazyHttpTransport(_options);
}

Originally, the comment got out of sync in this PR: https://github.com/getsentry/sentry-dotnet/pull/2784/files#diff-77b9274c57c77def047f936ba8b349866e9ca9f7cb48ab9e3ca653b106f11881L45-L48

and the code seems to have been broken since: https://github.com/getsentry/sentry-dotnet/pull/2961/files#diff-0361d7be7721215f1afa7ac6842e0bd3aa5647b093bf80433fe4a2ebd1c2b0f7L12-L16

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions