Remove unreachable statement
This commit is contained in:
parent
08c37c5fcb
commit
38b9e15615
1 changed files with 4 additions and 5 deletions
|
@ -617,12 +617,11 @@ impl EntryHeader {
|
||||||
let value = EntryHeader::walk_header(&mut header_clone, tokens); // walk N-1 tokens
|
let value = EntryHeader::walk_header(&mut header_clone, tokens); // walk N-1 tokens
|
||||||
if value.is_err() {
|
if value.is_err() {
|
||||||
let e = value.err().unwrap();
|
let e = value.err().unwrap();
|
||||||
match e.err_type() {
|
return match e.err_type() {
|
||||||
// We cannot find the header key, as there is no path to it
|
// We cannot find the header key, as there is no path to it
|
||||||
StoreErrorKind::HeaderKeyNotFound => return Ok(None),
|
StoreErrorKind::HeaderKeyNotFound => Ok(None),
|
||||||
_ => return Err(e),
|
_ => Err(e),
|
||||||
}
|
};
|
||||||
return Err(e);
|
|
||||||
}
|
}
|
||||||
Ok(Some(value.unwrap().clone()))
|
Ok(Some(value.unwrap().clone()))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue