Skip to content

Commit

Permalink
nightly fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Krayt78 committed Nov 27, 2024
1 parent c6c59ba commit e5b4659
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions polkadot/runtime/common/src/paras_registrar/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,16 +330,16 @@ pub mod pallet {
paras::Pallet::<T>::lifecycle(other).ok_or(Error::<T>::NotRegistered)?;
// identify which is a lease holding parachain and which is a parathread (on-demand
// parachain)
if id_lifecycle == ParaLifecycle::Parachain
&& other_lifecycle == ParaLifecycle::Parathread
if id_lifecycle == ParaLifecycle::Parachain &&
other_lifecycle == ParaLifecycle::Parathread
{
Self::do_thread_and_chain_swap(id, other);
} else if id_lifecycle == ParaLifecycle::Parathread
&& other_lifecycle == ParaLifecycle::Parachain
} else if id_lifecycle == ParaLifecycle::Parathread &&
other_lifecycle == ParaLifecycle::Parachain
{
Self::do_thread_and_chain_swap(other, id);
} else if id_lifecycle == ParaLifecycle::Parachain
&& other_lifecycle == ParaLifecycle::Parachain
} else if id_lifecycle == ParaLifecycle::Parachain &&
other_lifecycle == ParaLifecycle::Parachain
{
// If both chains are currently parachains, there is nothing funny we
// need to do for their lifecycle management, just swap the underlying
Expand Down

0 comments on commit e5b4659

Please sign in to comment.