mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-12-23 05:37:23 +00:00
Remove magic number.
This commit is contained in:
parent
4c5ccc001a
commit
defe9b6e95
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user