diff --git a/src/groups/groups.service.ts b/src/groups/groups.service.ts index ea2e7fd0d..56878effa 100644 --- a/src/groups/groups.service.ts +++ b/src/groups/groups.service.ts @@ -43,11 +43,7 @@ export class GroupsService { * @param {Group} group - the group to use * @return {GroupInfoDto} the built GroupInfoDto */ - toGroupDto(group: Group | null | undefined): GroupInfoDto | null { - if (!group) { - this.logger.warn(`Recieved ${String(group)} argument!`, 'toGroupDto'); - return null; - } + toGroupDto(group: Group): GroupInfoDto { return { name: group.name, displayName: group.displayName,