mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +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
|
@ -13,8 +13,8 @@ var transform = require('./task/transform')
|
|||
|
||||
module.exports = function(options) {
|
||||
var log = logger.createLogger('storage:plugins:image')
|
||||
, app = express()
|
||||
, server = http.createServer(app)
|
||||
var app = express()
|
||||
var server = http.createServer(app)
|
||||
|
||||
app.set('strict routing', true)
|
||||
app.set('case sensitive routing', true)
|
||||
|
|
|
@ -5,8 +5,8 @@ module.exports = function(raw) {
|
|||
|
||||
if (raw && (parsed = RE_CROP.exec(raw))) {
|
||||
return {
|
||||
width: +parsed[1] || 0
|
||||
, height: +parsed[2] || 0
|
||||
width: Number(parsed[1]) || 0
|
||||
, height: Number(parsed[2]) || 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ var request = require('request')
|
|||
module.exports = function(path, options) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var res = request.get(url.resolve(options.storageUrl, path))
|
||||
, ret = new stream.Readable().wrap(res) // Wrap old-style stream
|
||||
var ret = new stream.Readable().wrap(res) // Wrap old-style stream
|
||||
|
||||
res.on('response', function(res) {
|
||||
if (res.statusCode !== 200) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue