Improve code quality

This commit is contained in:
Tamas Vajk
2023-06-07 10:40:58 +02:00
parent e8f56f2981
commit 0f75449abb

View File

@@ -245,7 +245,7 @@ namespace Semmle.Extraction.CSharp.Entities
// Retrieve the original method kind
if (methodDecl.ExplicitInterfaceImplementations.IsEmpty)
{
throw new InternalError(methodDecl, $"Couldn't get the original method kind for an explicit interface implementation");
throw new InternalError(methodDecl, "Couldn't get the original method kind for an explicit interface implementation");
}
methodKind = methodDecl.ExplicitInterfaceImplementations.Select(m => m.MethodKind).First();