From 3632a980627a8a807da6aba64ae76bc874b5213c Mon Sep 17 00:00:00 2001 From: Adrian Brink Date: Thu, 6 Apr 2017 20:58:57 +0200 Subject: [PATCH] Clean up --- ethcore/light/src/client/header_chain.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ethcore/light/src/client/header_chain.rs b/ethcore/light/src/client/header_chain.rs index 71c0aa314..ffefa0a92 100644 --- a/ethcore/light/src/client/header_chain.rs +++ b/ethcore/light/src/client/header_chain.rs @@ -366,9 +366,8 @@ impl HeaderChain { pub fn block_header(&self, id: BlockId) -> Option { let load_from_db = |hash: H256| { let mut cache = self.cache.lock(); - let header = cache.block_header(&hash); - match header { + match cache.block_header(&hash) { Some(header) => Some(header), None => { match self.db.get(self.col, &hash) {