website/src/actions/moduleBank.ts
Function fetchModule
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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]) {