Showing 4 of 4 total issues
Function book
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var book = function(delta, settings, callback) {
// Get day of week.
var m = moment().day(settings.dayOfWeek);
if (m.unix() < moment().unix()) {
Function login
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var login = function(settings, callback) {
// First load homepage.
r({
url: config.frontpageUrl,
followAllRedirects: true,
Function start
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var start = function(settings, shouldBook, callback) {
var serie = [
function(callback) {
login(settings, callback);
}
Function unbook
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function unbook(opts, callback) {
if (!opts || !opts.id) {
callback(new Error('No id to unbook'));
return;
}