MOBILE-3947 chore: Linting fixes

main
Pau Ferrer Ocaña 2023-11-29 11:13:02 +01:00
parent 19ad6eec86
commit 0a73c59ea0
3 changed files with 6 additions and 5 deletions

View File

@ -52,7 +52,7 @@ const BUTTON_HIDDEN_CLASS = 'core-navbar-button-hidden';
*/
@Component({
selector: 'core-navbar-buttons',
template: '<ng-content></ng-content><template #contextMenuContainer></template>',
template: '<ng-content></ng-content><template #contextMenuContainer>-</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;

View File

@ -41,7 +41,7 @@ import { CoreTabsComponent } from './tabs';
*/
@Component({
selector: 'core-tab',
template: '<ng-container *ngIf="loaded && template" [ngTemplateOutlet]="template"></ng-container>',
template: '<ng-container *ngIf="loaded && template" [ngTemplateOutlet]="template" />',
})
export class CoreTabComponent implements OnInit, OnDestroy, CoreTabBase {

View File

@ -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.');