From b0d4479e63c6f71c9268ab49cdbe60f082a511b4 Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Thu, 16 Feb 2023 09:40:16 -0600 Subject: [PATCH] refactor: remove useless object spread --- src/services/FileTransfer/FileTransfer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/FileTransfer/FileTransfer.ts b/src/services/FileTransfer/FileTransfer.ts index 0a4ea7a..b3b219a 100644 --- a/src/services/FileTransfer/FileTransfer.ts +++ b/src/services/FileTransfer/FileTransfer.ts @@ -135,10 +135,11 @@ export class FileTransfer { const encryptedFile = Object.setPrototypeOf( { - ...file, + lastModified: file.lastModified, name: file.name, size: encryptedSize(file.size), stream: () => tees.pop(), + type: file.type, }, File.prototype )