enricostara/telegram-mt-node

View on GitHub
lib/net/http-connection.js

Summary

Maintainability
A
1 hr
Test Coverage

Function _createRequest has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

HttpConnection.prototype._createRequest = function (options, callback) {
    var request = http.request(options, function (res) {
            if (logger.isDebugEnabled()) {
                logger.debug('reading from %s\nstatus: %s\nheaders: %s',
                    this._config, res.statusCode, JSON.stringify(res.headers));
Severity: Minor
Found in lib/net/http-connection.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status