Skip to content

Commit 1418eaa

Browse files
committed
cargo fmt
1 parent 566d91c commit 1418eaa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pallets/subtensor/src/subnets/registration.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,9 @@ impl<T: Config> Pallet<T> {
522522
let can_prune_non_immune = free_count > min_free;
523523

524524
// Prefer non‑immune if allowed; otherwise fall back to immune.
525-
if can_prune_non_immune
526-
&& let Some((_, _, uid)) = best_non_immune {
527-
return Some(uid);
528-
}
525+
if can_prune_non_immune && let Some((_, _, uid)) = best_non_immune {
526+
return Some(uid);
527+
}
529528
best_immune.map(|(_, _, uid)| uid)
530529
}
531530

0 commit comments

Comments
 (0)