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