vvet: fix silent exit when invoked on a single .v file.

pull/8553/head
Delyan Angelov 2021-02-04 17:23:58 +02:00
parent 1e9ec6a126
commit 3e4e0a35e3
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ fn main() {
}
}
}
if os.is_file(path) {
vet.vet_file(path, false)
}
if os.is_dir(path) {
vet.vprintln("vetting folder: '$path' ...")
vfiles := os.walk_ext(path, '.v')