Skip to content

Commit 228009d

Browse files
committed
Use string.Empty
1 parent 6a5234c commit 228009d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ private void LoginNoFailover(ServerInfo serverInfo,
16341634

16351635
// When ignoring server provided failover partner, we must pass in the original failover partner from the connection string.
16361636
// Otherwise the pool group's failover partner designation will be updated to point to the server provided value.
1637-
string actualFailoverPartner = LocalAppContextSwitches.IgnoreServerProvidedFailoverPartner ? "" : ServerProvidedFailoverPartner;
1637+
string actualFailoverPartner = LocalAppContextSwitches.IgnoreServerProvidedFailoverPartner ? string.Empty : ServerProvidedFailoverPartner;
16381638

16391639
PoolGroupProviderInfo.FailoverCheck(false, connectionOptions, actualFailoverPartner);
16401640
}

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ private void LoginNoFailover(ServerInfo serverInfo, string newPassword, SecureSt
19641964

19651965
// When ignoring server provided failover partner, we must pass in the original failover partner from the connection string.
19661966
// Otherwise the pool group's failover partner designation will be updated to point to the server provided value.
1967-
string actualFailoverPartner = LocalAppContextSwitches.IgnoreServerProvidedFailoverPartner ? "" : ServerProvidedFailoverPartner;
1967+
string actualFailoverPartner = LocalAppContextSwitches.IgnoreServerProvidedFailoverPartner ? string.Empty : ServerProvidedFailoverPartner;
19681968

19691969
PoolGroupProviderInfo.FailoverCheck(false, connectionOptions, actualFailoverPartner);
19701970
}

0 commit comments

Comments
 (0)