Skip to content

Commit c8c6ccf

Browse files
cirko33mertwole
andauthored
cleaner coding style
Co-authored-by: mertwole <[email protected]>
1 parent 484370c commit c8c6ccf

File tree

1 file changed

+1
-1
lines changed
  • substrate/frame/bags-list/src

1 file changed

+1
-1
lines changed

substrate/frame/bags-list/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ impl<T: Config<I>, I: 'static> SortedListProvider<T::AccountId> for Pallet<T, I>
708708
}
709709

710710
fn on_insert(id: T::AccountId, score: T::Score) -> Result<(), ListError> {
711-
if let Err(_) = Pallet::<T, I>::ensure_unlocked() {
711+
if Pallet::<T, I>::ensure_unlocked().is_err() {
712712
// Pallet is locked - store in PendingRebag for later processing
713713
// Only queue if auto-rebagging is enabled
714714
if T::MaxAutoRebagPerBlock::get() > 0u32 {

0 commit comments

Comments
 (0)