client/app/bundles/course/assessment/submission/actions/answers/programming.js
Function importProgrammingFiles
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function importProgrammingFiles(answerId, files, language, resetField) {
const filesPayload = files.map((file) => ({
id: file.id,
filename: file.filename,
content: file.content,
- Create a ticketCreate a ticket
Function deleteProgrammingFile
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function deleteProgrammingFile(answer, fileId, onDeleteSuccess) {
const answerId = answer.id;
const payload = {
answer: { id: answerId, file_id: fileId },
};
- Create a ticketCreate a ticket