mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
amend implicit returns
This commit is contained in:
@@ -119,10 +119,11 @@ export async function checkViewerToolbarMoreActions(item: string, expectedToolba
|
||||
}
|
||||
|
||||
|
||||
function removeClosePreviousNextOldInfo(actions: string[]) {
|
||||
function removeClosePreviousNextOldInfo(actions: string[]): string[] {
|
||||
return actions.filter(elem => {
|
||||
if ( (elem !== 'Close') && (elem !== 'Previous File') && (elem !== 'Next File') && (elem !== 'View details')) {
|
||||
return elem;
|
||||
}
|
||||
});
|
||||
return null
|
||||
}).filter((action) => action != null);
|
||||
}
|
||||
|
Reference in New Issue
Block a user