message: Remove double if
diff: @@ -238,8 +238,7 @@ fn get_panic_candidates(tests: &[DirEntry], config: &Config) -> HashMap<String,
  let path = dir_entry.path();
  if path.is_file() {
  if let Some(p) = path_relative_from(path, &root) {
  - if is_prefix_match(&test_binary.prefix, &p) {
  - if !checked_files.contains(path) {
  + if is_prefix_match(&test_binary.prefix, &p) && !checked_files.contains(path) {
  checked_files.insert(path.to_path_buf());
  trace!("Assessing {} for `should_panic` doctests", path.display());
  let lines = find_panics_in_file(path).unwrap_or_default();
  @@ -254,7 +253,6 @@ fn get_panic_candidates(tests: &[DirEntry], config: &Config) -> HashMap<String,
  }
  }
  }
  - }
  } else {
  warn!(
  "Invalid characters in name of doctest {}",
  