Skip to content

Commit d5127b6

Browse files
authored
remove messageFormatOnException in CreateNavigationSession (#4549)
1 parent 582161e commit d5127b6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Adapter/MSTestAdapter.PlatformServices/Services/DiaSessionOperations.cs

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ static DiaSessionOperations()
3434
// Create instance only when DiaSession is found in Object Model.
3535
if (s_typeDiaSession != null && s_typeDiaNavigationData != null)
3636
{
37-
string messageFormatOnException = string.Join("MSTestDiscoverer:DiaSession: Could not create diaSession for source:", source, ". Reason:{0}");
3837
#pragma warning disable IL2077 // 'target parameter' argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to 'target method'.
3938
return SafeInvoke(() => Activator.CreateInstance(s_typeDiaSession, source));
4039
#pragma warning restore IL2077 // 'target parameter' argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to 'target method'.

0 commit comments

Comments
 (0)