From 3a1ccb68d94f209e73670b10a5be793c7b7bf283 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Tue, 15 Mar 2022 15:20:35 +0100 Subject: [PATCH] linter fixes --- packages/file-handling/src/nextcloud-file-picker.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/file-handling/src/nextcloud-file-picker.js b/packages/file-handling/src/nextcloud-file-picker.js index 0f7715c8..5b50edba 100644 --- a/packages/file-handling/src/nextcloud-file-picker.js +++ b/packages/file-handling/src/nextcloud-file-picker.js @@ -641,7 +641,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { /** * * @param {*} data - * @returns reduced list of objects, including users files + * @returns {Array} reduced list of objects, including users files */ filterUserFilesOnly(data) { // R = Share, S = Shared Folder, M = Group folder or external source, G = Read, D = Delete, NV / NVW = Write, CK = Create @@ -662,7 +662,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { /** * * @param {*} path - * @returns array including file path and base name + * @returns {Array} including file path and base name */ parseFileAndBaseName(path) { if (path[0] !== '/') { @@ -696,7 +696,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { /** * * @param {*} response - * @returns list of file objects containing corresponding information + * @returns {Array} list of file objects containing corresponding information */ mapResponseToObject(response) { let results = []; @@ -1481,7 +1481,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { this.loading = true; this.statusText = i18n.t('nextcloud-file-picker.upload-to', {path: directory}); this.fileList = [...files]; - if (typeof this.fileList !== undefined && this.fileList.length > 0) { + if (this.fileList !== undefined && this.fileList.length > 0) { this.sendSetPropertyEvent('analytics-event', { category: 'FileHandlingNextcloud', action: 'UploadFiles', -- GitLab