This commit is contained in:
Duke 2019-02-25 23:36:25 +08:00 committed by Thiago Loureiro
parent 26ae9948d5
commit 8d99449b08

View File

@ -6,7 +6,7 @@ namespace Ocelot.Configuration
{ {
public LoadBalancerOptions(string type, string key, int expiryInMs) public LoadBalancerOptions(string type, string key, int expiryInMs)
{ {
Type = type ?? nameof(NoLoadBalancer); Type = string.IsNullOrWhiteSpace(type) ? nameof(NoLoadBalancer) : type;
Key = key; Key = key;
ExpiryInMs = expiryInMs; ExpiryInMs = expiryInMs;
} }