src/client/app/teams/list-team-members.component.ts
Function updateRole
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateRole(member: TeamMember, role: string) {
// No update required
if (member.role === role) {
return;
}
Function ngOnInit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ngOnInit() {
this.alertService.clearAllAlerts();
this.user = this.authService.getCurrentUser();