Skip to content

Commit

Permalink
fix: No need to spread the object
Browse files Browse the repository at this point in the history
  • Loading branch information
Crash-- authored and doubleface committed Dec 9, 2023
1 parent 22ccb50 commit 0c4654a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/cozy-clisk/src/launcher/saveFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ const saveFiles = async (client, entries, folderPath, options) => {
)
continue
}
const savedEntry = await saveFile(client, entry, {
...saveOptions
})
const savedEntry = await saveFile(client, entry, saveOptions)
if (savedEntry && savedEntry._cozy_file_to_create) {
savedFiles++
delete savedEntry._cozy_file_to_create
Expand Down

0 comments on commit 0c4654a

Please sign in to comment.