added a line to escape when the file is empty (i think)

This commit is contained in:
Sigfried Gold 2013-02-13 11:58:50 -05:00
parent 39dce5b249
commit 27d25afbdc
1 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,8 @@ _(process.argv.slice(2)).filter(function(arg){
lastKey = key; lastKey = key;
}) })
.on ("end", function (){ .on ("end", function (){
if (lastKey === null)
return;
// add EOF offset // add EOF offset
offsets[lastKey].push(eofKey); offsets[lastKey].push(eofKey);