Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Nov 20, 2024
1 parent 9ce78ad commit 7b8366a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions substrate/frame/migrations/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ impl IntoRecord for Event<Test> {
) -> EventRecord<<Test as frame_system::Config>::RuntimeEvent, H256> {
let phase = if index == 0 {
// only the first event is emitted during initialization
match self {
Self::UpgradeStarted { .. } | Self::UpgradeFailed => {},
_ => panic!("first event emitted should be UpgradeStarted or UpgradeFailed."),
if !matches!(self, Self::UpgradeStarted { .. } | Self::UpgradeFailed) {
panic!("first event emitted should be UpgradeStarted or UpgradeFailed.");
}
frame_system::Phase::Initialization
} else {
Expand Down

0 comments on commit 7b8366a

Please sign in to comment.