diff options
Diffstat (limited to 'node_modules/md5-hex/index.js')
-rw-r--r-- | node_modules/md5-hex/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/md5-hex/index.js b/node_modules/md5-hex/index.js index c52bddd7c..82cfae306 100644 --- a/node_modules/md5-hex/index.js +++ b/node_modules/md5-hex/index.js @@ -1,11 +1,11 @@ 'use strict'; -var crypto = require('crypto'); +const crypto = require('crypto'); module.exports = function (input) { - var hash = crypto.createHash('md5'); + const hash = crypto.createHash('md5'); - var update = function (buf) { - var inputEncoding = typeof buf === 'string' ? 'utf8' : undefined; + const update = buf => { + const inputEncoding = typeof buf === 'string' ? 'utf8' : undefined; hash.update(buf, inputEncoding); }; |