Skip to content

Commit 879246a

Browse files
committed
Remove redundant assignment to _serverSpn
1 parent 49da161 commit 879246a

File tree

2 files changed

+0
-2
lines changed
  • src/Microsoft.Data.SqlClient

2 files changed

+0
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ internal void Connect(ServerInfo serverInfo,
395395
}
396396
else
397397
{
398-
_serverSpn = null;
399398
SqlClientEventSource.Log.TryTraceEvent("TdsParser.Connect | SEC | Connection Object Id {0}, Authentication Mode: {1}", _connHandler.ObjectID,
400399
authType == SqlAuthenticationMethod.NotSpecified ? SqlAuthenticationMethod.SqlPassword.ToString() : authType.ToString());
401400
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ internal void Connect(ServerInfo serverInfo,
397397
}
398398
else
399399
{
400-
_serverSpn = null;
401400
SqlClientEventSource.Log.TryTraceEvent("TdsParser.Connect | SEC | Connection Object Id {0}, Authentication Mode: {1}", _connHandler.ObjectID,
402401
authType == SqlAuthenticationMethod.NotSpecified ? SqlAuthenticationMethod.SqlPassword.ToString() : authType.ToString());
403402
}

0 commit comments

Comments
 (0)