File tree 1 file changed +2
-3
lines changed
substrate/frame/proxy/src
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ pub mod pallet {
270
270
#[ pallet:: weight( T :: WeightInfo :: remove_proxies( T :: MaxProxies :: get( ) ) ) ]
271
271
pub fn remove_proxies ( origin : OriginFor < T > ) -> DispatchResult {
272
272
let who = ensure_signed ( origin) ?;
273
- Self :: remove_all_proxy_delegates ( & who) ? ;
273
+ Self :: remove_all_proxy_delegates ( & who) ;
274
274
Ok ( ( ) )
275
275
}
276
276
@@ -853,7 +853,7 @@ impl<T: Config> Pallet<T> {
853
853
///
854
854
/// Parameters:
855
855
/// - `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 ) {
857
857
if let Some ( ( _, ticket) ) = Proxies :: < T > :: take ( & delegator) {
858
858
if let Err ( e) = ticket. drop ( & delegator) {
859
859
log:: error!(
@@ -863,6 +863,5 @@ impl<T: Config> Pallet<T> {
863
863
) ;
864
864
}
865
865
}
866
- Ok ( ( ) )
867
866
}
868
867
}
You can’t perform that action at this time.
0 commit comments