[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

@@ -44,6 +44,7 @@ export class FolderActionsService {
/**
* Gets the handler function for an action.
*
* @param key Identifier for the action
* @returns The handler function
*/
@@ -57,6 +58,7 @@ export class FolderActionsService {
/**
* Sets a new handler function for an action.
*
* @param key Identifier for the action
* @param handler The new handler function
* @returns True if the key was a valid action identifier, false otherwise
@@ -72,6 +74,7 @@ export class FolderActionsService {
/**
* Checks if an action is available for a particular item.
*
* @param nodeEntry Item to check
* @returns True if the action is available, false otherwise
*/
@@ -132,7 +135,7 @@ export class FolderActionsService {
return handlerObservable;
} else {
this.permissionEvent.next(new PermissionModel({type: 'folder', action: 'delete', permission: permission}));
this.permissionEvent.next(new PermissionModel({type: 'folder', action: 'delete', permission}));
return throwError(new Error('No permission to delete'));
}
}