v12/m3u-parser

View on GitHub

Showing 1 of 1 total issue

Function parse has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function parse (data) {
    if (Buffer.isBuffer(data))
        data = data.toString();
    else if (typeof data !== 'string')
        return Promise.reject(new TypeError('Data passed to the parser should be a string'));
Severity: Minor
Found in src/m3u.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language