Skip to content

Commit 2399863

Browse files
committed
Removing (what I think is) a superfluous filename check
1 parent a10714d commit 2399863

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

tests/system.rs

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -611,22 +611,18 @@ fn check_blocks_idempotency(blocks: &Vec<CodeBlock>) {
611611
)));
612612
failures += 1;
613613
} else {
614-
for &(ref file_name, ref text) in &file_map {
615-
if let FileName::Custom(ref file_name) = *file_name {
616-
if file_name == "stdin" {
617-
let compare = make_diff(&block.code_block, text, DIFF_CONTEXT_SIZE);
618-
if !compare.is_empty() {
619-
let mut mismatches = HashMap::new();
620-
mismatches.insert(PathBuf::from("Configurations.md"), compare);
621-
print_mismatches(mismatches, |line_num| {
622-
format!(
623-
"\nMismatch at Configurations.md:{}:",
624-
line_num + block.code_block_start_line - 1
625-
)
626-
});
627-
failures += 1;
628-
}
629-
}
614+
for &(ref _file_name, ref text) in &file_map {
615+
let compare = make_diff(&block.code_block, text, DIFF_CONTEXT_SIZE);
616+
if !compare.is_empty() {
617+
let mut mismatches = HashMap::new();
618+
mismatches.insert(PathBuf::from("Configurations.md"), compare);
619+
print_mismatches(mismatches, |line_num| {
620+
format!(
621+
"\nMismatch at Configurations.md:{}:",
622+
line_num + block.code_block_start_line - 1
623+
)
624+
});
625+
failures += 1;
630626
}
631627
}
632628
}

0 commit comments

Comments
 (0)