Fix all lib/ files with ESLint rules with 0 errors.

This commit is contained in:
Gunther Brunner
2016-01-19 20:52:38 +09:00
parent 994977ea94
commit 434f63b3a9
69 changed files with 793 additions and 764 deletions

View File

@@ -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)) :
''
)
}
})