Skip to content

Commit

Permalink
remove quit function
Browse files Browse the repository at this point in the history
  • Loading branch information
yaniswang committed Oct 8, 2015
1 parent 03fb745 commit c29f2e3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions bin/htmlhint
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,3 @@ function repeatStr(n, str){
function logJson(filepath, messages, jsonOutput){
jsonOutput.push({'file': filepath, 'messages': messages});
}

function quit(code){
if ((!process.stdout.flush || !process.stdout.flush()) && (parseFloat(process.versions.node) < 0.5)) {
process.once("drain", function () {
process.exit(code || 0);
});
} else {
process.exit(code || 0);
}
}

0 comments on commit c29f2e3

Please sign in to comment.