Remove unneccessary block
This commit is contained in:
parent
8c7ca95af1
commit
f542fafec2
1 changed files with 3 additions and 5 deletions
|
@ -54,11 +54,9 @@ impl<'a> Link<'a> {
|
||||||
file.get_header()
|
file.get_header()
|
||||||
.read("imag.content.uri")
|
.read("imag.content.uri")
|
||||||
.ok()
|
.ok()
|
||||||
.and_then(|opt| {
|
.and_then(|opt| match opt {
|
||||||
match opt {
|
Some(Value::String(s)) => Url::parse(&s[..]).ok(),
|
||||||
Some(Value::String(s)) => Url::parse(&s[..]).ok(),
|
_ => None
|
||||||
_ => None
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue