Skip to content

Commit

Permalink
Closed output streams when we're done writing to them.
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstein committed May 17, 2010
1 parent 991e331 commit f8b7e71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions update.js
Expand Up @@ -63,6 +63,7 @@ if (!data.match('exports.JSLINT =')) {
output.writeLine('exports.options = ' + JSON.stringify(options, null, '\t') + ';');
output.writeLine('exports.version = \'' + version + '\';');
output.flush();
output.close();

// This doesn't meet the CommonJS requirements for version numbers, but we can't
// just make up a version number for JSLint. Got to use what we have.
Expand All @@ -71,4 +72,5 @@ if (!data.match('exports.JSLINT =')) {
output = io.open('package.json', 'w');
output.writeLine(JSON.stringify(packageDescription, null, '\t'));
output.flush();
output.close();
}

0 comments on commit f8b7e71

Please sign in to comment.