Permalink
Browse files

Updated md5 sum helper

  • Loading branch information...
1 parent 5f72e94 commit 20cd1866a5d4da9ac39038a2ee6c979793b38aab @davglass committed Oct 25, 2012
Showing with 5 additions and 7 deletions.
  1. +5 −7 src/loader/scripts/meta_join.js
@@ -9,13 +9,11 @@ var fs = require('fs'),
MD5_TOKEN = '{ /* MD5 */ }',
TEMPLATE_TOKEN = '{ /* METAGEN */ }',
crypto = require('crypto'),
- md5sum = crypto.createHash('md5');
-
-var md5 = function(str) {
- md5sum.update(str);
- var sum = md5sum.digest('hex');
- return sum;
-};
+ md5 = function(str) {
+ var md5sum = crypto.createHash('md5');
+ md5sum.update(str);
+ return md5sum.digest('hex');
+ };
var dirs = fs.readdirSync(base);

0 comments on commit 20cd186

Please sign in to comment.