Skip to content

Commit

Permalink
refactor: improve maintainability
Browse files Browse the repository at this point in the history
  • Loading branch information
Seli0303 committed Jun 18, 2024
1 parent 8a4b41d commit 851c404
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ export default {
for (const s of this.editSkills) {
editSkillIds.push(s.id)
}
let newSkillIdsSorted = newSkillIds.sort((a,b) => a-b)
for (const id of newSkillIdsSorted) {
newSkillIds.sort((a,b) => a-b)
for (const id of newSkillIds) {
if (!editSkillIds.includes(id)) {
this.editSkills.push(new Skill(' Skill from imported ' + this.content.item + ' ' + id, id))
}
Expand Down

0 comments on commit 851c404

Please sign in to comment.