refactor: remove useless object spread
This commit is contained in:
parent
c21b62adbe
commit
b0d4479e63
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user