mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Fix all lib/ files with ESLint rules with 0 errors.
This commit is contained in:
parent
994977ea94
commit
434f63b3a9
69 changed files with 793 additions and 764 deletions
|
@ -15,9 +15,9 @@ var download = require('../../util/download')
|
|||
|
||||
module.exports = function(options) {
|
||||
var log = logger.createLogger('storage:temp')
|
||||
, app = express()
|
||||
, server = http.createServer(app)
|
||||
, storage = new Storage()
|
||||
var app = express()
|
||||
var server = http.createServer(app)
|
||||
var storage = new Storage()
|
||||
|
||||
app.set('strict routing', true)
|
||||
app.set('case sensitive routing', true)
|
||||
|
@ -59,9 +59,7 @@ module.exports = function(options) {
|
|||
'/s/%s/%s%s'
|
||||
, plugin
|
||||
, file.id
|
||||
, file.name
|
||||
? util.format('/%s', path.basename(file.name))
|
||||
: ''
|
||||
, file.name ? util.format('/%s', path.basename(file.name)) : ''
|
||||
)
|
||||
}
|
||||
})
|
||||
|
@ -115,9 +113,9 @@ module.exports = function(options) {
|
|||
'/s/%s/%s%s'
|
||||
, plugin
|
||||
, file.id
|
||||
, file.name
|
||||
? util.format('/%s', path.basename(file.name))
|
||||
: ''
|
||||
, file.name ?
|
||||
util.format('/%s', path.basename(file.name)) :
|
||||
''
|
||||
)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue