Skip to content

Commit f901e22

Browse files
author
David Kazlauskas
committed
Remove dispatch result in infallible function
1 parent 6ae7b4a commit f901e22

File tree

1 file changed

+2
-3
lines changed
  • substrate/frame/proxy/src

1 file changed

+2
-3
lines changed

substrate/frame/proxy/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ pub mod pallet {
270270
#[pallet::weight(T::WeightInfo::remove_proxies(T::MaxProxies::get()))]
271271
pub fn remove_proxies(origin: OriginFor<T>) -> DispatchResult {
272272
let who = ensure_signed(origin)?;
273-
Self::remove_all_proxy_delegates(&who)?;
273+
Self::remove_all_proxy_delegates(&who);
274274
Ok(())
275275
}
276276

@@ -853,7 +853,7 @@ impl<T: Config> Pallet<T> {
853853
///
854854
/// Parameters:
855855
/// - `delegator`: The delegator account.
856-
pub fn remove_all_proxy_delegates(delegator: &T::AccountId) -> DispatchResult {
856+
pub fn remove_all_proxy_delegates(delegator: &T::AccountId) {
857857
if let Some((_, ticket)) = Proxies::<T>::take(&delegator) {
858858
if let Err(e) = ticket.drop(&delegator) {
859859
log::error!(
@@ -863,6 +863,5 @@ impl<T: Config> Pallet<T> {
863863
);
864864
}
865865
}
866-
Ok(())
867866
}
868867
}

0 commit comments

Comments
 (0)