job: filter out empty lines from .lohr file

rocket-stable
Antoine Martin 2021-03-30 15:25:26 +02:00
parent 1be64262b2
commit 209e1e58c7
1 changed files with 7 additions and 1 deletions

View File

@ -125,7 +125,13 @@ impl Job {
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>> {