refactor: remove useless object spread

This commit is contained in:
Jeremy Kahn 2023-02-16 09:40:16 -06:00
parent c21b62adbe
commit b0d4479e63

View File

@ -135,10 +135,11 @@ export class FileTransfer {
const encryptedFile = Object.setPrototypeOf( const encryptedFile = Object.setPrototypeOf(
{ {
...file, lastModified: file.lastModified,
name: file.name, name: file.name,
size: encryptedSize(file.size), size: encryptedSize(file.size),
stream: () => tees.pop(), stream: () => tees.pop(),
type: file.type,
}, },
File.prototype File.prototype
) )