Skip to content

Commit

Permalink
Fix RequestConfiguration (#8426)
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd authored Nov 28, 2024
1 parent 5f5b5ca commit 13438e7
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 13438e7

Please sign in to comment.