style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-04-02 08:06:37 +00:00
parent bdc689a4e1
commit 0ec296bf3d
2 changed files with 21 additions and 20 deletions

View file

@ -88,10 +88,10 @@ export class LearningPath {
static getStartNode(dto: LearningPathDTO): LearningPathNodeDTO {
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.
if (startNodeDtos.length < 1) {
// The learning path has no starting node -> use the first node.
return dto.nodes[0];
} // The learning path has 1 or more starting nodes -> use the first start node.
return startNodeDtos[0];
} // The learning path has 1 or more starting nodes -> use the first start node.
return startNodeDtos[0];
}
}