Remove unneccessary block

This commit is contained in:
Matthias Beyer 2016-06-11 06:53:46 +02:00
parent 8c7ca95af1
commit f542fafec2

View file

@ -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
}
}) })
} }