[AAE-7242] fix eslint warnings for content services project (#7505)

* fix eslint warnings for content services project

* fix typing issues
This commit is contained in:
Denys Vuika
2022-02-17 15:23:38 +00:00
committed by GitHub
parent bca5a783ab
commit 9f72e30fbc
158 changed files with 2604 additions and 2715 deletions

View File

@@ -177,12 +177,12 @@ export class LibraryDialogComponent implements OnInit, OnDestroy {
private create(): Observable<SiteEntry> {
const { title, id, description, visibility } = this;
const siteBody = <SiteBodyCreate> {
const siteBody = {
id,
title,
description,
visibility
};
} as SiteBodyCreate;
return this.sitesService.createSite(siteBody);
}
@@ -206,8 +206,7 @@ export class LibraryDialogComponent implements OnInit, OnDestroy {
message: 'LIBRARY.ERRORS.CONFLICT'
});
}
} catch (error) {
} catch {
}
return error;
@@ -274,12 +273,10 @@ export class LibraryDialogComponent implements OnInit, OnDestroy {
}
return new Promise((resolve) => {
timer = setTimeout(() => {
return this.sitesService.getSite(control.value).subscribe(
() => resolve({ message: 'LIBRARY.ERRORS.EXISTENT_SITE' }),
() => resolve(null)
);
}, 300);
timer = setTimeout(() => this.sitesService.getSite(control.value).subscribe(
() => resolve({ message: 'LIBRARY.ERRORS.EXISTENT_SITE' }),
() => resolve(null)
), 300);
});
};
}