Boolean checks should not be inverted (#14829)

This commit is contained in:
Cesar Kohl authored and GitHub committed 2023-05-16 20:35:42 +08:00
1 parent f20ecad6f1
commit 22bfc5db37
1 file changed
+1 -1
+1 -1
View File
@@ -510,7 +510,7 @@ function handleFunctionNameComments({
}
function handleCommentAfterArrowParams({ comment, enclosingNode, text }) {
if (!(enclosingNode?.type === "ArrowFunctionExpression")) {
if (enclosingNode?.type !== "ArrowFunctionExpression") {
return false;
}