Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Nov 19, 2024
1 parent 02787c3 commit c967895
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions polkadot-parachains/common/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ where
fn contains(asset: &Asset, origin: &Location) -> bool {
if let Some(ref reserve) = ReserveProvider::reserve(asset) {
if reserve == origin {
return true
return true;
}
}
false
Expand All @@ -61,7 +61,7 @@ where
fn matches_fungible(a: &Asset) -> Option<Amount> {
if let (Fungible(ref amount), AssetId(location)) = (&a.fun, &a.id) {
if CurrencyIdConvert::convert(location.clone()).is_some() {
return CheckedConversion::checked_from(*amount)
return CheckedConversion::checked_from(*amount);
}
}
None
Expand Down
4 changes: 2 additions & 2 deletions polkadot-parachains/integritee-kusama/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub mod scheduler {
Expected version == 4, found {:?}",
onchain_version,
);
return T::DbWeight::get().reads(1)
return T::DbWeight::get().reads(1);
}
log::info!(target: TARGET, "migrating from {:?} to 4, purging agenda", onchain_version);
let purged_agendas = v1::Agenda::<T>::clear(u32::MAX, None).unique as u64;
Expand Down Expand Up @@ -193,7 +193,7 @@ pub mod collator_selection_init {
let invulnerables_len = pallet_collator_selection::Invulnerables::<T>::get().len();
if invulnerables_len > 0 {
info!(target: TARGET, "no need to initialize invulnerables");
return T::DbWeight::get().reads_writes(1, 0)
return T::DbWeight::get().reads_writes(1, 0);
}
info!(target: TARGET, "initializing the set of invulnerables");

Expand Down
4 changes: 2 additions & 2 deletions polkadot-parachains/integritee-polkadot/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub mod scheduler {
Expected version == 4, found {:?}",
onchain_version,
);
return T::DbWeight::get().reads(1)
return T::DbWeight::get().reads(1);
}
log::info!(target: TARGET, "migrating from {:?} to 4, purging agenda", onchain_version);
let purged_agendas = v1::Agenda::<T>::clear(u32::MAX, None).unique as u64;
Expand Down Expand Up @@ -193,7 +193,7 @@ pub mod collator_selection_init {
let invulnerables_len = pallet_collator_selection::Invulnerables::<T>::get().len();
if invulnerables_len > 0 {
info!(target: TARGET, "no need to initialize invulnerables");
return T::DbWeight::get().reads_writes(1, 0)
return T::DbWeight::get().reads_writes(1, 0);
}
info!(target: TARGET, "initializing the set of invulnerables");

Expand Down

0 comments on commit c967895

Please sign in to comment.