mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
Fix eslint errors
This commit is contained in:
parent
a875d85c46
commit
b60cb6ef6a
7 changed files with 49 additions and 35 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue