mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix eslint warnigs for core project (#7506)
This commit is contained in:
@@ -74,10 +74,7 @@ export class ViewerExtensionDirective implements AfterContentInit, OnDestroy {
|
||||
let supportedExtension: string;
|
||||
|
||||
if (this.supportedExtensions && (this.supportedExtensions instanceof Array)) {
|
||||
supportedExtension = this.supportedExtensions.find((extension) => {
|
||||
return extension.toLowerCase() === fileExtension;
|
||||
|
||||
});
|
||||
supportedExtension = this.supportedExtensions.find((extension) => extension.toLowerCase() === fileExtension);
|
||||
}
|
||||
|
||||
return !!supportedExtension;
|
||||
|
Reference in New Issue
Block a user