Skip to content

Commit

Permalink
Fix RequestConfiguration (#8426) (#8428)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Bernd <[email protected]>
  • Loading branch information
github-actions[bot] and flobernd authored Nov 28, 2024
1 parent 7240670 commit 1e6e472
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 1e6e472

Please sign in to comment.