mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
lint: remove unneeded trailing line fix
This commit is contained in:
parent
4d942547a8
commit
dea7afd5e4
1 changed files with 1 additions and 6 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Reference in a new issue