Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/RestSharp/SimpleClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ static class SimpleClientFactory {

public static HttpClient GetClient(Uri baseUrl, Func<HttpClient> getClient) {
var key = baseUrl.ToString();
if (CachedClients.TryGetValue(key, out var client)) return client;
client = getClient();
CachedClients.TryAdd(key, client);
return client;
return CachedClients.GetOrAdd(key, key => getClient());
}
}