fix: onnodige null check verwijderd in services/class.ts
This commit is contained in:
		
							parent
							
								
									e9cfa41933
								
							
						
					
					
						commit
						b3299949b0
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -79,10 +79,6 @@ export async function getClassTeacherInvitations( | ||||||
|     const invitations = |     const invitations = | ||||||
|         await teacherInvitationRepository.findAllInvitationsForClass(cls); |         await teacherInvitationRepository.findAllInvitationsForClass(cls); | ||||||
| 
 | 
 | ||||||
|     if (!invitations) { |  | ||||||
|         return []; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     if (full) { |     if (full) { | ||||||
|         return invitations.map(mapToTeacherInvitationDTO); |         return invitations.map(mapToTeacherInvitationDTO); | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Adriaan Jacquet
						Adriaan Jacquet