style: fix linting issues met ESLint
This commit is contained in:
		
							parent
							
								
									a047558f95
								
							
						
					
					
						commit
						bdc689a4e1
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -45,9 +45,9 @@ export class LearningPathNode { | |||
|                         next: LearningPathNode.fromDTOAndOtherNodes(nextNodeDto, otherNodes), | ||||
|                         default: transDto.default, | ||||
|                     }; | ||||
|                 } else { | ||||
|                     return undefined | ||||
|                 }  | ||||
|                     return undefined | ||||
|                  | ||||
|             }).filter(it => it !== undefined), | ||||
|             createdAt: new Date(dto.created_at), | ||||
|             updatedAt: new Date(dto.updatedAt), | ||||
|  |  | |||
|  | @ -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]; | ||||
|         } | ||||
|          | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action