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()
|
||||
.read("imag.content.uri")
|
||||
.ok()
|
||||
.and_then(|opt| {
|
||||
match opt {
|
||||
.and_then(|opt| match opt {
|
||||
Some(Value::String(s)) => Url::parse(&s[..]).ok(),
|
||||
_ => None
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue