style: fix linting issues met ESLint
This commit is contained in:
parent
a047558f95
commit
bdc689a4e1
2 changed files with 4 additions and 4 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue