Skip to content

Commit ad41e2c

Browse files
committed
some adjusts
1 parent 7e68655 commit ad41e2c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/dropbox/actions/download-file-to-tmp/download-file-to-tmp.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ export default {
4545
link, metadata,
4646
} = linkResponse.result;
4747

48-
// Use provided name or original name
49-
const name = metadata.name;
50-
const fileName = this.name || name;
51-
48+
const fileName = this.name || metadata.name;
5249
const cleanFileName = fileName.replace(/[?$#&{}[]<>\*!@:\+\\\/]/g, "");
5350

5451
const tmpPath = checkTmp(cleanFileName);

0 commit comments

Comments
 (0)