src/frontend/packages/cloud-foundry/src/shared/components/list/list-types/cf-orgs/cf-org-card/cf-org-card.component.ts
Function ngOnInit
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ngOnInit() {
const userRole$ = this.cfEndpointService.currentUser$.pipe(
switchMap(u => {
// This is null if the endpoint is disconnected. Probably related to https://github.com/cloudfoundry-incubator/stratos/issues/1727
if (!u) {