use EmptyIfNull

This commit is contained in:
ig 2023-09-14 14:27:58 +02:00
parent f2c110dad0
commit bd18082e8b
1 changed files with 3 additions and 4 deletions

View File

@ -13,7 +13,6 @@ public static class HttpExtensions
return headers return headers
.AllKeys .AllKeys
.EmptyIfNull() .EmptyIfNull()
.Where(k => k != null)
.Select(k => new HttpHeader(k!, headers[k]!)); .Select(k => new HttpHeader(k!, headers[k]!));
} }