Skip to content

Commit 567bfa7

Browse files
committed
Small fix
1 parent 186df67 commit 567bfa7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MongoDB.Driver/MongoClientSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ public string ProxyHost
445445
set
446446
{
447447
if (_isFrozen) { throw new InvalidOperationException("MongoClientSettings is frozen."); }
448-
_proxyHost = Ensure.IsNotNullOrEmpty(value, nameof(ProxyHost));
448+
_proxyHost = value;
449449
}
450450
}
451451

@@ -477,7 +477,7 @@ public string ProxyUsername
477477
set
478478
{
479479
if (_isFrozen) { throw new InvalidOperationException("MongoClientSettings is frozen."); }
480-
_proxyUsername = Ensure.IsNotNullOrEmpty(value, nameof(ProxyUsername));
480+
_proxyUsername = value;
481481
}
482482
}
483483

@@ -490,7 +490,7 @@ public string ProxyPassword
490490
set
491491
{
492492
if (_isFrozen) { throw new InvalidOperationException("MongoClientSettings is frozen."); }
493-
_proxyPassword = Ensure.IsNotNullOrEmpty(value, nameof(ProxyPassword));
493+
_proxyPassword = value;
494494
}
495495
}
496496

0 commit comments

Comments
 (0)