Skip to content

Commit

Permalink
Fix RequestConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Nov 28, 2024
1 parent 5f5b5ca commit c46238a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ protected TDescriptor Qs(string name, IStringable value)
/// </summary>
public TDescriptor RequestConfiguration(Func<RequestConfigurationDescriptor, IRequestConfiguration> configurationSelector)
{
var rc = RequestConfig;
RequestConfig = configurationSelector?.Invoke(new RequestConfigurationDescriptor(rc)) ?? rc;
RequestConfig = configurationSelector?.Invoke(RequestConfig is null
? new RequestConfigurationDescriptor()
: new RequestConfigurationDescriptor(RequestConfig)) ?? RequestConfig;
return _descriptor;
}

Expand Down

0 comments on commit c46238a

Please sign in to comment.