Don't fail if there are no Github extensions (fix #877)

This commit is contained in:
Roey Darwish Dror
2022-03-29 03:17:15 +03:00
parent 8dd2eb7532
commit 5166f651ea
3 changed files with 31 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ fn get_wsl_distributions(wsl: &Path) -> Result<Vec<String>> {
Ok(output
.lines()
.filter(|s| !s.is_empty())
.map(|x| x.replace("\u{0}", "").replace('\r', ""))
.map(|x| x.replace('\u{0}', "").replace('\r', ""))
.collect())
}