1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 17:59:28 +02:00

Fix eslint errors

This commit is contained in:
Vishal Banthia 2016-02-03 17:22:05 +09:00
parent a875d85c46
commit b60cb6ef6a
7 changed files with 49 additions and 35 deletions

View file

@ -5,9 +5,16 @@ var log = logger.createLogger('util:deviceutil')
var deviceutil = module.exports = Object.create(null)
deviceutil.isOwnedByUser = function(device, user) {
return device.present && device.ready && device.owner && device.owner.email === user.email && device.using
return device.present &&
device.ready &&
device.owner &&
device.owner.email === user.email &&
device.using
}
deviceutil.isAddable = function(device, user) {
return device.present && device.ready && !device.using && !device.owner
return device.present &&
device.ready &&
!device.using &&
!device.owner
}