bookParser/Eslite.js
Function getByISBN
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.getByISBN = function(pISBN) {
var domain = 'http://www.eslite.com/';
var searchUrl = 'Search_BW.aspx?query=';
var bookObj = {};
var deferred = Q.defer();
Avoid deeply nested control flow statements. Open
Open
if (infos[i].indexOf('ISBN 13') > -1) {
bookObj.ISBN = infos[i].split('/')[1].trim();
}