1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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')