chore: ✨
This commit is contained in:
parent
a786cd85ad
commit
8188ba5f43
|
@ -274,8 +274,9 @@ where
|
||||||
raw_url
|
raw_url
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(parse_ssh_url)
|
.map(parse_ssh_url)
|
||||||
.map(|res| res.map_err(DE::custom).map(Some))
|
.map(|res| res.map_err(DE::custom))
|
||||||
.unwrap_or(Ok(None))
|
.transpose()
|
||||||
|
.or(Ok(None))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_ssh_url(raw_url: &String) -> Result<Url, url::ParseError> {
|
fn parse_ssh_url(raw_url: &String) -> Result<Url, url::ParseError> {
|
||||||
|
|
Loading…
Reference in a new issue