image-charts/javascript

View on GitHub

Showing 1 of 1 total issue

Function toBuffer has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

ImageCharts.prototype.toBuffer = function (options) {
  const _options = Object.assign({}, {
    // request retry
    maxAttempts: 3,   // retry 3 times
    retryDelay: 2000,  // wait 2s before trying again
Severity: Minor
Found in lib.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language