Skip to content

Commit 5334515

Browse files
committed
Remove unnecessary whitespace edge case
1 parent b0a3f2a commit 5334515

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

DocumentationAnalyzers/DocumentationAnalyzers/RefactoringRules/DOC901ConvertToDocumentationComment.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,7 @@ private void HandleDocumentedNode(SyntaxNodeAnalysisContext context)
7171
switch (leadingTrivia[i].Kind())
7272
{
7373
case SyntaxKind.WhitespaceTrivia:
74-
if (isAtEndOfLine)
75-
{
76-
// Multiple newlines
77-
break;
78-
}
79-
80-
// Ignore indentation
74+
// Ignore indentation and/or trailing whitespace
8175
continue;
8276

8377
case SyntaxKind.EndOfLineTrivia:

0 commit comments

Comments
 (0)