style: fix linting issues met ESLint

This commit is contained in:
Lint Action 2025-04-02 08:06:32 +00:00
parent a047558f95
commit bdc689a4e1
2 changed files with 4 additions and 4 deletions

View file

@ -45,9 +45,9 @@ export class LearningPathNode {
next: LearningPathNode.fromDTOAndOtherNodes(nextNodeDto, otherNodes),
default: transDto.default,
};
} else {
}
return undefined
}
}).filter(it => it !== undefined),
createdAt: new Date(dto.created_at),
updatedAt: new Date(dto.updatedAt),

View file

@ -90,8 +90,8 @@ export class LearningPath {
const startNodeDtos = dto.nodes.filter((it) => it.start_node === true);
if (startNodeDtos.length < 1) { // The learning path has no starting node -> use the first node.
return dto.nodes[0];
} else { // The learning path has 1 or more starting nodes -> use the first start node.
} // The learning path has 1 or more starting nodes -> use the first start node.
return startNodeDtos[0];
}
}
}