Coursemology/coursemology2

View on GitHub
client/app/bundles/course/assessment/submission/actions/answers/textResponse.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function uploadTextResponseFiles has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function uploadTextResponseFiles(answerId, answer, resetField) {
  const payload = {
    answer: {
      id: answerId,
      files: answer.files,

Function deleteTextResponseFile has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function deleteTextResponseFile(answerId, questionId, attachmentId) {
  return (dispatch) => {
    const payload = { attachment_id: attachmentId };

    dispatch({

There are no issues that match your filters.

Category
Status