Skip to content

Commit 89367b5

Browse files
authored
@tus/s3-store: fix uncaught exception when removing files (#410)
1 parent 0d75d70 commit 89367b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/s3-store/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ export class S3Store extends DataStore {
274274
} catch (error) {
275275
reject(error)
276276
} finally {
277-
fsProm.rm(path).catch(/* ignore */)
277+
fsProm.rm(path).catch(() => {
278+
/* ignore */
279+
})
278280
}
279281
})
280282

0 commit comments

Comments
 (0)