korczis/microcrawler

View on GitHub
src/helper/request.js

Summary

Maintainability
A
1 hr
Test Coverage

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

export function requestSuperagent(url, retryNo = 0) {
  return new Promise((resolve, reject) => {
    let req = superagent
      .get(url)
      .timeout(config.timeout)
Severity: Minor
Found in src/helper/request.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status