1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-15 10:07:07 +01:00

Remove explicit logger and error handler params.

This commit is contained in:
hacksalot
2016-01-09 22:34:21 -05:00
parent 4c954b79df
commit bd8b587c5b
5 changed files with 12 additions and 34 deletions

View File

@ -35,10 +35,9 @@ Implementation of the 'convert' verb for HackMyResume.
/**
Convert between FRESH and JRS formats.
*/
function convert( srcs, dst, opts, logger ) {
function convert( srcs, dst, opts ) {
// Housekeeping
var _log = logger || console.log;
if( !srcs || !srcs.length ) { throw { fluenterror: 6 }; }
if( !dst || !dst.length ) {
if( srcs.length === 1 ) {
@ -60,7 +59,7 @@ Implementation of the 'convert' verb for HackMyResume.
// Load the resume
var rinfo = ResumeFactory.loadOne( src, {
log: _log, format: null, objectify: true, throw: true
format: null, objectify: true, throw: true
});
var s = rinfo.rez