mirror of
				https://github.com/JuanCanham/HackMyResume.git
				synced 2025-10-31 05:07:26 +00:00 
			
		
		
		
	Remove magic number.
This commit is contained in:
		| @@ -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(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user