You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Hooks trait has been declared in the orml-currencies-allowance-extension pallet, but no custom implementations have been provided.
ID PDM-005
Scope Code Quality
Status New
Description
The following code snippet raises concerns: pallets/orml-currencies-allowance-extension/src/lib.rs:99:
#[pallet::hooks]
impl<T: Config> Hooks<T::BlockNumber> for Pallet<T> {}
The Hooks trait is typically used to perform logic on every block initialization, finalization, and other specific actions. However, in the case of the orml-currencies-allowance-extension pallet, no methods from the Hooks trait are implemented. While this does not cause any immediate detrimental effects, it can reduce code readability and increase complexity.
Recommendation
To improve code clarity and readability, it is recommended to eliminate the use of the Hooks trait in the orml-currencies-allowance- extension pallet. Since no custom implementations are provided, removing the Hooks trait declaration will simplify the code and remove unnecessary complexity.
The text was updated successfully, but these errors were encountered:
The Hooks trait has been declared in the
orml-currencies-allowance-extension
pallet, but no custom implementations have been provided.ID PDM-005
Scope Code Quality
Status New
Description
The following code snippet raises concerns:
pallets/orml-currencies-allowance-extension/src/lib.rs:99
:The Hooks trait is typically used to perform logic on every block initialization, finalization, and other specific actions. However, in the case of the
orml-currencies-allowance-extension
pallet, no methods from the Hooks trait are implemented. While this does not cause any immediate detrimental effects, it can reduce code readability and increase complexity.Recommendation
To improve code clarity and readability, it is recommended to eliminate the use of the Hooks trait in the orml-currencies-allowance- extension pallet. Since no custom implementations are provided, removing the Hooks trait declaration will simplify the code and remove unnecessary complexity.
The text was updated successfully, but these errors were encountered: