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 5d12e5a
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,13 +63,8 @@ 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
}
}
vt.vprintln("vetting folder: '${path}' ...")
overwrite_exclude := exclude_dirs.any(path.contains(it))
os.walk(path, fn [mut vt, overwrite_exclude] (p string) {
if p.ends_with('.v') || p.ends_with('.vv') {
if !overwrite_exclude {
Expand Down

0 comments on commit 5d12e5a

Please sign in to comment.