ahbeng/NUSMods

View on GitHub
website/src/actions/moduleBank.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function fetchModule has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function fetchModule(moduleCode: ModuleCode) {
  return (dispatch: Dispatch, getState: GetState) => {
    const onFinally = () => {
      // Update the timestamp of the accessed module if it is in the store.
      if (getState().moduleBank.modules[moduleCode]) {
Severity: Minor
Found in website/src/actions/moduleBank.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status