diff --git a/src/rules/hasdoc.nim b/src/rules/hasdoc.nim index f10b27e..1665e4d 100644 --- a/src/rules/hasdoc.nim +++ b/src/rules/hasdoc.nim @@ -235,10 +235,6 @@ fixRule: return false if astNode.kind == nkObjectTy: astNode[2].comment = docTemplate - elif astNode.kind notin {nkEnumTy, nkIdentDefs, nkConstDef}: - let docNode: PNode = newNode(kind = nkCommentStmt) - docNode.comment = docTemplate - astNode.sons = docNode & astNode.sons else: astNode.comment = docTemplate return true