mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
fix: redundant logic
This commit is contained in:
parent
46c8867223
commit
2351528a42
@ -459,7 +459,7 @@ self.actuallyUpload = async (req, res, user, data = {}) => {
|
||||
// NOTE: We loop through Request.files for clarity,
|
||||
// but we will actually have already rejected the Request
|
||||
// if it has more than 1 file while being a chunk upload
|
||||
if (chunkedUploads && req.files.some(file => file.isChunk)) {
|
||||
if (req.files.some(file => file.isChunk)) {
|
||||
req.files.forEach(file => {
|
||||
file.chunksData.chunks++
|
||||
// Mark as ready to accept more chunk uploads or to finalize
|
||||
|
Loading…
Reference in New Issue
Block a user