LearnersGuild/echo

View on GitHub
src/common/util/getGraphQLFetcher.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getGraphQLFetcher has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function getGraphQLFetcher(dispatch, auth, baseUrl = process.env.APP_BASE_URL, throwErrors = true) {
  dispatch(fetchDataRequest())
  return graphQLParams => {
    const options = {
      method: 'post',
Severity: Minor
Found in src/common/util/getGraphQLFetcher.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status