FIXES: Fixed bug when recursing through directories.

Also removed unnecessary print statements.
This commit is contained in:
Jeremy Wall 2018-11-15 16:57:24 -06:00
parent 15026423db
commit 0bbb417f69

View File

@ -153,7 +153,6 @@ fn visit_ucg_files(
let entry = match dir_iter.next() {
Some(e) => e,
None => {
println!("Exiting the loop");
break;
}
};
@ -194,7 +193,7 @@ fn visit_ucg_files(
result = false;
}
}
if validate {
if validate && !summary.is_empty() {
println!("RESULTS:");
println!("{}", summary);
}
@ -257,6 +256,7 @@ fn build_command(
if let Ok(false) = ok {
process::exit(1)
}
process::exit(0);
}
for file in files.unwrap() {
let pb = PathBuf::from(file);