Skip to content

Commit c57afd3

Browse files
committed
[REF]: Refactor return on makeSynthticFileValidate to avoid lgtm alert
1 parent 81c9923 commit c57afd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/dropzone/components/utils/validation.utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,16 @@ export const makeSynthticFileValidate = (
221221
newUpoadStatus = undefined;
222222
customUploadMessage = undefined;
223223
}
224-
return {
224+
//now make a File Validated instance
225+
const newFileValidated: FileValidated = {
225226
id: FileIdGenerator.getNextId(),
226227
valid,
227228
file,
228229
uploadStatus: newUpoadStatus,
229230
uploadMessage: customUploadMessage,
230231
errors
231232
}
233+
return newFileValidated;
232234
}
233235
/**
234236
* list of dumy errors in english

0 commit comments

Comments
 (0)