mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 02:02:42 +02:00
lint: remove unneeded trailing line fix
This commit is contained in:
@@ -420,11 +420,6 @@ fn lint_markdown() -> LintResult {
|
|||||||
Ok(output) if output.status.success() => Ok(()),
|
Ok(output) if output.status.success() => Ok(()),
|
||||||
Ok(output) => {
|
Ok(output) => {
|
||||||
let stderr = String::from_utf8_lossy(&output.stderr);
|
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!(
|
Err(format!(
|
||||||
r#"
|
r#"
|
||||||
One or more markdown links are broken.
|
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:
|
Markdown link errors found:
|
||||||
{}
|
{}
|
||||||
"#,
|
"#,
|
||||||
filtered_stderr
|
stderr
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
Err(e) if e.kind() == ErrorKind::NotFound => {
|
Err(e) if e.kind() == ErrorKind::NotFound => {
|
||||||
|
|||||||
Reference in New Issue
Block a user