1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-22 08:20:11 +00:00

Fix global leak.

This commit is contained in:
hacksalot 2016-01-11 21:14:40 -05:00
parent 342b960f63
commit b961fd1c07

View File

@ -170,7 +170,7 @@ Definition of the `main` function.
return v === '-o' || v === '--options' || v === '--opts'; return v === '-o' || v === '--options' || v === '--opts';
}); });
if(optsIdx !== -1) { if(optsIdx !== -1) {
optStr = cleanArgs[ optsIdx + 1]; var optStr = cleanArgs[ optsIdx + 1];
args.splice( optsIdx + 2, 2 ); args.splice( optsIdx + 2, 2 );
if( optStr && (optStr = optStr.trim()) ) { if( optStr && (optStr = optStr.trim()) ) {
//var myJSON = JSON.parse(optStr); //var myJSON = JSON.parse(optStr);