From 0a73c59ea0f780ad8abdcd5e860ad262545108e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 29 Nov 2023 11:13:02 +0100 Subject: [PATCH] MOBILE-3947 chore: Linting fixes --- src/core/components/navbar-buttons/navbar-buttons.ts | 4 ++-- src/core/components/tabs/tab.ts | 2 +- src/core/services/file.ts | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/components/navbar-buttons/navbar-buttons.ts b/src/core/components/navbar-buttons/navbar-buttons.ts index b63f656c1..f2a5c1c86 100644 --- a/src/core/components/navbar-buttons/navbar-buttons.ts +++ b/src/core/components/navbar-buttons/navbar-buttons.ts @@ -52,7 +52,7 @@ const BUTTON_HIDDEN_CLASS = 'core-navbar-button-hidden'; */ @Component({ selector: 'core-navbar-buttons', - template: '', + template: '', styleUrls: ['navbar-buttons.scss'], }) export class CoreNavBarButtonsComponent implements OnInit, OnDestroy { @@ -62,7 +62,7 @@ export class CoreNavBarButtonsComponent implements OnInit, OnDestroy { // If the hidden input is true, hide all buttons. // eslint-disable-next-line @angular-eslint/no-input-rename @Input('hidden') set hidden(value: boolean) { - if (typeof value == 'string' && value == '') { + if (typeof value === 'string' && value === '') { value = true; } this.allButtonsHidden = value; diff --git a/src/core/components/tabs/tab.ts b/src/core/components/tabs/tab.ts index 6a9c7590b..d5c0be34e 100644 --- a/src/core/components/tabs/tab.ts +++ b/src/core/components/tabs/tab.ts @@ -41,7 +41,7 @@ import { CoreTabsComponent } from './tabs'; */ @Component({ selector: 'core-tab', - template: '', + template: '', }) export class CoreTabComponent implements OnInit, OnDestroy, CoreTabBase { diff --git a/src/core/services/file.ts b/src/core/services/file.ts index 4a5e6659b..d26667369 100644 --- a/src/core/services/file.ts +++ b/src/core/services/file.ts @@ -23,11 +23,12 @@ import { CoreConstants } from '@/core/constants'; import { CoreError } from '@classes/errors/error'; import { CoreLogger } from '@singletons/logger'; -import { makeSingleton, File, Zip, WebView } from '@singletons'; +import { makeSingleton, File, WebView } from '@singletons'; import { CoreFileEntry } from '@services/file-helper'; import { CoreText } from '@singletons/text'; import { CorePlatform } from '@services/platform'; import { CorePath } from '@singletons/path'; +import { Zip } from '@features/native/plugins'; /** * Progress event used when writing a file data into a file. @@ -933,7 +934,7 @@ export class CoreFileProvider { // If destFolder is not set, use same location as ZIP file. We need to use absolute paths (including basePath). destFolder = this.addBasePathIfNeeded(destFolder || CoreMimetypeUtils.removeExtension(path)); - const result = await Zip.unzip(fileEntry.toURL(), destFolder, onProgress as unknown as Function); + const result = await Zip.unzip(fileEntry.toURL(), destFolder, onProgress); if (result == -1) { throw new CoreError('Unzip failed.');