diff options
author | Akshay <[email protected]> | 2022-02-08 15:30:31 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2022-02-08 15:30:31 +0000 |
commit | 014be14e7dc64520b41aedb2d9c9aa719cdf0577 (patch) | |
tree | c892c8a6bf112d534f1569d0a5eb7871224a99f1 /bin/src/lint.rs | |
parent | ade09b4d172ff649b716a05ce597d2da864a3623 (diff) |
fix: statix always exits with exit code 1
Diffstat (limited to 'bin/src/lint.rs')
-rw-r--r-- | bin/src/lint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/src/lint.rs b/bin/src/lint.rs index 4a8c540..23a1d10 100644 --- a/bin/src/lint.rs +++ b/bin/src/lint.rs | |||
@@ -61,7 +61,7 @@ pub mod main { | |||
61 | let lint = |vfs_entry| lint_with(vfs_entry, &lints, &session); | 61 | let lint = |vfs_entry| lint_with(vfs_entry, &lints, &session); |
62 | let results = vfs.iter().map(lint).collect::<Vec<_>>(); | 62 | let results = vfs.iter().map(lint).collect::<Vec<_>>(); |
63 | 63 | ||
64 | if results.len() != 0 { | 64 | if results.iter().map(|r| r.reports.len()).sum::<usize>() != 0 { |
65 | for r in &results { | 65 | for r in &results { |
66 | stdout.write(&r, &vfs, check_config.format).unwrap(); | 66 | stdout.write(&r, &vfs, check_config.format).unwrap(); |
67 | } | 67 | } |