mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
fix: eslint
This commit is contained in:
parent
371ee429e1
commit
b078336dd2
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
var http = require('http')
|
||||
var util = require('util')
|
||||
var path = require('path')
|
||||
var crypto = require('crypto');
|
||||
var crypto = require('crypto')
|
||||
|
||||
var express = require('express')
|
||||
var validator = require('express-validator')
|
||||
|
@ -90,7 +90,7 @@ module.exports = function(options) {
|
|||
if (options.saveDir) {
|
||||
form.uploadDir = options.saveDir
|
||||
}
|
||||
form.on ('fileBegin', function(name, file){
|
||||
form.on('fileBegin', function(name, file) {
|
||||
var md5 = crypto.createHash('md5')
|
||||
file.name = md5.update(file.name).digest('hex')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue