Skip to content

Commit

Permalink
Remove needless return
Browse files Browse the repository at this point in the history
Signed-off-by: Thane Thomson <connect@thanethomson.com>
  • Loading branch information
thanethomson committed Oct 25, 2021
1 parent 7637b2f commit 841bea2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions testgen/src/tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,7 @@ impl Tester {
let path = format!("{}", entry.path().display());
let rel_path = self.env().unwrap().rel_path(&path).unwrap();
if kind.is_file() || kind.is_symlink() {
if !rel_path.ends_with(".json") {
return;
} else {
if rel_path.ends_with(".json") {
self.run_for_file(&rel_path);
}
} else if kind.is_dir() {
Expand Down

0 comments on commit 841bea2

Please sign in to comment.