Skip to content

Commit

Permalink
tidy: don't short-circuit on license error
Browse files Browse the repository at this point in the history
If there is more than one license error, tidy would only print the first
error. This changes it so that all license errors are printed.
  • Loading branch information
ehuss committed May 23, 2019
1 parent 27cc0db commit 46ffb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/tidy/src/deps.rs
Expand Up @@ -241,7 +241,7 @@ pub fn check(path: &Path, bad: &mut bool) {
}

let toml = dir.path().join("Cargo.toml");
*bad = *bad || !check_license(&toml);
*bad = !check_license(&toml) || *bad;
}
assert!(saw_dir, "no vendored source");
}
Expand Down

0 comments on commit 46ffb6a

Please sign in to comment.