mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +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
|
@ -7,15 +7,12 @@ var keyutil = module.exports = Object.create(null)
|
|||
|
||||
keyutil.parseKeyCharacterMap = function(stream) {
|
||||
var resolver = Promise.defer()
|
||||
, state = 'type_t'
|
||||
, keymap = {
|
||||
var state = 'type_t'
|
||||
var keymap = {
|
||||
type: null
|
||||
, keys: []
|
||||
}
|
||||
, lastKey
|
||||
, lastRule
|
||||
, lastModifier
|
||||
, lastBehavior
|
||||
var lastKey, lastRule, lastModifier, lastBehavior
|
||||
|
||||
function fail(char, state) {
|
||||
throw new Error(util.format(
|
||||
|
@ -431,8 +428,8 @@ keyutil.parseKeyCharacterMap = function(stream) {
|
|||
|
||||
function readableListener() {
|
||||
var chunk = stream.read()
|
||||
, i = 0
|
||||
, l = chunk.length
|
||||
var i = 0
|
||||
var l = chunk.length
|
||||
|
||||
try {
|
||||
while (i < l) {
|
||||
|
@ -461,7 +458,7 @@ keyutil.parseKeyCharacterMap = function(stream) {
|
|||
|
||||
keyutil.namedKey = function(name) {
|
||||
var key = adb.Keycode['KEYCODE_' + name.toUpperCase()]
|
||||
if (key === void 0) {
|
||||
if (typeof key === 'undefined') {
|
||||
throw new Error(util.format('Unknown key "%s"', name))
|
||||
}
|
||||
return key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue