We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b479c4d commit f0990acCopy full SHA for f0990ac
1 file changed
src/parse/index.ts
@@ -40,11 +40,11 @@ function findCorrectCommentBlockIndex(
40
return comments.findIndex((comment) => {
41
const { start: commentStart, end: commentEnd } = comment;
42
43
- const check1 = (commentStart === start && commentEnd === end);
44
- const check2 = (commentStart === start + 1 && commentEnd === end - 1);
45
- const check3 = (commentStart === start + 7 && commentEnd === end - 1);
46
-
47
- return check1 || check2 || check3;
+ return (
+ (commentStart === start && commentEnd === end) ||
+ (commentStart === start + 1 && commentEnd === end - 1) ||
+ (commentStart === start + 7 && commentEnd === end - 1)
+ );
48
});
49
50
}
0 commit comments