Skip to content

Commit 2d1312f

Browse files
committed
chore: fix stylecop issue
1 parent cd32a21 commit 2d1312f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DotNetApiDiff/Commands/CompareCommand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ public override int Execute([NotNull] CommandContext context, [NotNull] CompareC
305305
private static string ExtractMemberName(string elementName)
306306
{
307307
if (string.IsNullOrEmpty(elementName))
308-
return "Unknown";
308+
{
309+
return "Unknown"; // Or throw an exception if this is not expected
310+
}
309311

310312
// For full names like "Namespace.Class.Method", extract just "Method"
311313
var lastDotIndex = elementName.LastIndexOf('.');

0 commit comments

Comments
 (0)