Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Mar 29, 2024
1 parent f2f2a56 commit 3c31202
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/tools/vvet/vvet.v
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ fn main() {
vt.vet_file(path)
}
if os.is_dir(path) {
mut overwrite_exclude := false
for d in exclude_dirs {
if path.contains(d) {
overwrite_exclude = true
}
}
overwrite_exclude := exclude_dirs.any(path.contains(it))
vt.vprintln("vetting folder: '${path}' ...")
os.walk(path, fn [mut vt, overwrite_exclude] (p string) {
if p.ends_with('.v') || p.ends_with('.vv') {
Expand Down

0 comments on commit 3c31202

Please sign in to comment.