Showing 1 of 1 total issue
Function parse
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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'));