Skip to content

Commit cf00017

Browse files
authored
doc: simplify is_module_readme function (#20793)
1 parent 8c1ead5 commit cf00017

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/tools/vdoc/utils.v

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ fn get_node_id(dn doc.DocNode) string {
3030
}
3131

3232
fn is_module_readme(dn doc.DocNode) bool {
33-
if dn.comments.len > 0 && dn.content == 'module ${dn.name}' {
34-
return true
35-
}
36-
return false
33+
return dn.comments.len > 0 && dn.content == 'module ${dn.name}'
3734
}
3835

3936
fn trim_doc_node_description(description string) string {

0 commit comments

Comments
 (0)