Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Code style alignment with BABE changes in PoC, upgraded to `monthly-2…
Browse files Browse the repository at this point in the history
…021-05` tag of upstream substrate
  • Loading branch information
nazar-pc committed Aug 8, 2021
1 parent 6c894a1 commit c291a88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/consensus/poc/src/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ where
.unwrap_or_else(|| find_pre_digest::<B>(&header))?;

trace!(target: "poc", "Checking header");
let seal = match header.digest_mut().pop() {
Some(x) => x,
None => return Err(poc_err(Error::HeaderUnsealed(header.hash()))),
};
let seal = header
.digest_mut()
.pop()
.ok_or_else(|| poc_err(Error::HeaderUnsealed(header.hash())))?;

let sig = seal
.as_poc_seal()
Expand Down

0 comments on commit c291a88

Please sign in to comment.