Skip to content

Commit

Permalink
Apply suggestions: tagSpilitted -> splitTag
Browse files Browse the repository at this point in the history
Co-authored-by: Niels Pilgaard Grøndahl <[email protected]>
  • Loading branch information
ZZZank and NielsPilgaard authored Dec 29, 2023
1 parent 73324e7 commit 40aa29d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ onEvent('item.tags', (event) => {
for (let recipe of recipes) {
let firstRemove = recipe.firstRemove ? recipe.firstRemove : [];
let thenAdd = recipe.thenAdd ? recipe.thenAdd : [];
let tagSplitted = recipe.tag.split('/');
for (let i = 0; i < tagSplitted.length; i++) {
let tag = tagSplitted.slice(0, i + 1).join('/');
let splitTag = recipe.tag.split('/');
for (let i = 0; i < splitTag.length; i++) {
let tag = splitTag.slice(0, i + 1).join('/');
event.get(tag).remove(firstRemove).add(thenAdd);
}
}
Expand Down

0 comments on commit 40aa29d

Please sign in to comment.