mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Fix all lib/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -4,13 +4,14 @@ module.exports.list = function(val) {
|
||||
|
||||
module.exports.size = function(val) {
|
||||
var match = /^(\d+)x(\d+)$/.exec(val)
|
||||
return match ? [+match[1], +match[2]] : undefined
|
||||
if (match) {
|
||||
return [Number(match[1]), Number(match[2])]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports.range = function(from, to) {
|
||||
var items = []
|
||||
, i
|
||||
for (i = from; i <= to; ++i) {
|
||||
for (var i = from; i <= to; ++i) {
|
||||
items.push(i)
|
||||
}
|
||||
return items
|
||||
|
||||
Reference in New Issue
Block a user