fmt: fix unnecessary line break in array init (fix #11448) (#11562)

This commit is contained in:
yuyi 2021-09-21 21:20:09 +08:00 committed by GitHub
parent d6fa6a459c
commit 108a01d65f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 532 additions and 518 deletions

View file

@ -289,11 +289,9 @@ fn (mut vd VDoc) generate_docs_from_file() {
}
}
}
dirs := if cfg.is_multi {
get_modules_list(cfg.input_path, []string{})
} else {
[cfg.input_path]
}
dirs := if cfg.is_multi { get_modules_list(cfg.input_path, []string{}) } else { [
cfg.input_path,
] }
for dirpath in dirs {
vd.vprintln('Generating $out.typ docs for "$dirpath"')
mut dcs := doc.generate(dirpath, cfg.pub_only, true, cfg.platform, cfg.symbol_name) or {