Skip to content

Commit

Permalink
doc: simplify is_module_readme function (#20793)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Feb 12, 2024
1 parent 8c1ead5 commit cf00017
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/tools/vdoc/utils.v
Expand Up @@ -30,10 +30,7 @@ fn get_node_id(dn doc.DocNode) string {
}

fn is_module_readme(dn doc.DocNode) bool {
if dn.comments.len > 0 && dn.content == 'module ${dn.name}' {
return true
}
return false
return dn.comments.len > 0 && dn.content == 'module ${dn.name}'
}

fn trim_doc_node_description(description string) string {
Expand Down

0 comments on commit cf00017

Please sign in to comment.