1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-06-30 23:40:05 +01:00

Remove magic number.

This commit is contained in:
hacksalot 2016-01-15 13:35:45 -05:00
parent 4c5ccc001a
commit defe9b6e95

View File

@ -13,6 +13,7 @@ Implementation of the 'analyze' verb for HackMyResume.
var MKDIRP = require('mkdirp')
, PATH = require('path')
, HME = require('../core/event-codes')
, HMSTATUS = require('../core/status-codes')
, _ = require('underscore')
, ResumeFactory = require('../core/resume-factory')
, Verb = require('../verbs/verb')
@ -39,7 +40,8 @@ Implementation of the 'analyze' verb for HackMyResume.
*/
function analyze( sources, dst, opts ) {
this.stat('begin');
if( !sources || !sources.length ) throw { fluenterror: 3 };
if( !sources || !sources.length )
throw { fluenterror: HMSTATUS.resumeNotFound };
var nlzrs = _loadInspectors();