Skip to content

Commit

Permalink
Resolve redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
rakanalh committed Nov 10, 2023
1 parent 051fe25 commit bbb0868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/ddc-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,12 @@ pub mod pallet {
match node_pub_key {
NodePubKey::CDNPubKey(_) =>
T::ClusterVisitor::get_unbonding_delay(&cluster_id, NodeType::CDN)
.map_err(|e| Into::<Error<T>>::into(e))?,
.map_err(Into::<Error<T>>::into)?,
NodePubKey::StoragePubKey(_) => T::ClusterVisitor::get_unbonding_delay(
&cluster_id,
NodeType::Storage,
)
.map_err(|e| Into::<Error<T>>::into(e))?,
.map_err(Into::<Error<T>>::into)?,
}
} else {
// If node is not a member of any cluster, allow immediate unbonding.
Expand Down

0 comments on commit bbb0868

Please sign in to comment.