diff --git a/custom-pallets/create-department/src/lib.rs b/custom-pallets/create-department/src/lib.rs index 3113031..202c17d 100644 --- a/custom-pallets/create-department/src/lib.rs +++ b/custom-pallets/create-department/src/lib.rs @@ -213,8 +213,7 @@ pub mod pallet { match >::get(department_id) { Some(mut old_accounts) => { - // Check if some accounts already exists in old_accounts - + // Check if account already exists in old_accounts if old_accounts.contains(&account) { Err(Error::::AccountAlreadyExits)? }