From 80e0a1e516812e41d6f3c6c22de5866b9423d0a5 Mon Sep 17 00:00:00 2001 From: akanass Date: Mon, 11 Oct 2021 10:20:34 +0200 Subject: [PATCH] linter(update): format code to be ok with new linter version --- src/lib/rx-file-upload.ts | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/lib/rx-file-upload.ts b/src/lib/rx-file-upload.ts index af01c83..a71260d 100644 --- a/src/lib/rx-file-upload.ts +++ b/src/lib/rx-file-upload.ts @@ -643,14 +643,20 @@ export class RxFileUploadCls implements RxFileUpload { defaultIfEmpty(fileData), ), ), - map((fileData: RxFileUploadFileData): { - rxFileUploadId: string; - fileData: string; - } => ({ - rxFileUploadId: - this._rxFileUploadIds[typeof fileIndex === 'number' ? fileIndex : 0], - fileData: this._serialize(fileData), - })), + map( + ( + fileData: RxFileUploadFileData, + ): { + rxFileUploadId: string; + fileData: string; + } => ({ + rxFileUploadId: + this._rxFileUploadIds[ + typeof fileIndex === 'number' ? fileIndex : 0 + ], + fileData: this._serialize(fileData), + }), + ), map((data: { rxFileUploadId: string; fileData: string }): any => typeof additionalFormData !== 'undefined' && typeof additionalFormData.fieldName === 'string' &&