job: filter out empty lines from .lohr file

This commit is contained in:
Antoine Martin 2021-03-30 15:25:26 +02:00
parent 1be64262b2
commit 209e1e58c7

View file

@ -125,7 +125,13 @@ impl Job {
let output = String::from_utf8(output.stdout)?; let output = String::from_utf8(output.stdout)?;
Ok(Some(output.lines().map(String::from).collect())) Ok(Some(
output
.lines()
.map(String::from)
.filter(|s| !s.is_empty())
.collect(),
))
} }
fn get_remotes(&self, config: &GlobalSettings) -> anyhow::Result<Vec<RepoUrl>> { fn get_remotes(&self, config: &GlobalSettings) -> anyhow::Result<Vec<RepoUrl>> {