nelsonic/esta

View on GitHub
lib/http_request.js

Summary

Maintainability
A
1 hr
Test Coverage

Function request has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function request(options, callback) {
  // check http request options are set https://github.com/dwyl/esta/issues/79
  if(!options || !options.host || !options.port || !options.path){
    var msg = "ESTA requires valid http request options. please use lib/options"
    throw "ERROR: " + __filename + ":16 \n" + msg;
Severity: Minor
Found in lib/http_request.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status