Skip to content

Commit

Permalink
Replace match with if
Browse files Browse the repository at this point in the history
  • Loading branch information
khssnv committed Nov 18, 2024
1 parent 00ee6d9 commit 247679d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pallets/ddc-verification/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2477,13 +2477,14 @@ pub mod pallet {
None => Vec::new(),
};

let new_activity_keys = match existing_activities_keys.len() {
0 => key,
_ => itertools::concat(vec![
let new_activity_keys = if existing_activities_keys.len() > 0 {
itertools::concat(vec![
existing_activities_keys,
vec![VALIDATION_ACTIVITIES_KEYS_DELIMITER],
key,
]),
])
} else {
key
};

local_storage_set(
Expand Down

0 comments on commit 247679d

Please sign in to comment.