Skip to content

Commit f0d659e

Browse files
committed
remove extra call to uuid.random()
1 parent a28044b commit f0d659e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/drive/download.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function runSample(fileId) {
4646
.get({fileId, alt: 'media'}, {responseType: 'stream'})
4747
.then(res => {
4848
return new Promise((resolve, reject) => {
49-
const filePath = path.join(os.tmpdir(), uuid.randomUUID());
49+
const filePath = path.join(os.tmpdir(), uuid);
5050
console.log(`writing to ${filePath}`);
5151
const dest = fs.createWriteStream(filePath);
5252
let progress = 0;

0 commit comments

Comments
 (0)