Skip to content

Commit fc8fef1

Browse files
committed
Fix review comment
1 parent 2757f33 commit fc8fef1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/editor/CommentCompletion.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ import { DocumentParser } from "./DocumentParser";
1717

1818
function isLineComment(document: vscode.TextDocument, line: number): boolean {
1919
// test if line consists of just '///'
20-
if (/^\s*\/\/\//.test(document.lineAt(line).text)) {
21-
return true;
22-
}
23-
return false;
20+
return /^\s*\/\/\//.test(document.lineAt(line).text);
2421
}
2522

2623
/** CompletionItem for Swift Comments */

0 commit comments

Comments
 (0)