csblogs/feed-downloader

View on GitHub
src/http/if-modified-since-request.js

Summary

Maintainability
A
1 hr
Test Coverage

Function httpRequestIfModifiedSince has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function httpRequestIfModifiedSince(uri, dateTime) {
  return new Promise((resolve, reject) => {
    if (!dateTime || check.instance(dateTime, Date.prototype)) {
      reject(new Error('Valid DateTime required'));
    }
Severity: Minor
Found in src/http/if-modified-since-request.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status