lint: remove unneeded trailing line fix

This commit is contained in:
willcl-ark 2024-07-03 11:14:01 +01:00
parent 4d942547a8
commit dea7afd5e4
No known key found for this signature in database
GPG key ID: CE6EC49945C17EA6

View file

@ -420,11 +420,6 @@ fn lint_markdown() -> LintResult {
Ok(output) if output.status.success() => Ok(()),
Ok(output) => {
let stderr = String::from_utf8_lossy(&output.stderr);
let filtered_stderr: String = stderr // Filter out this annoying trailing line
.lines()
.filter(|&line| line != "The following links could not be resolved:")
.collect::<Vec<&str>>()
.join("\n");
Err(format!(
r#"
One or more markdown links are broken.
@ -434,7 +429,7 @@ Relative links are preferred (but not required) as jumping to file works nativel
Markdown link errors found:
{}
"#,
filtered_stderr
stderr
))
}
Err(e) if e.kind() == ErrorKind::NotFound => {