mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Fix all JSHint complaints in Node.js code.
This commit is contained in:
parent
f62ce4acc1
commit
b4416b5f0f
31 changed files with 126 additions and 119 deletions
|
@ -1,8 +1,6 @@
|
|||
var r = require('rethinkdb')
|
||||
var Promise = require('bluebird')
|
||||
|
||||
var db = require('./')
|
||||
var wire = require('../wire')
|
||||
var wireutil = require('../wire/util')
|
||||
|
||||
var dbapi = Object.create(null)
|
||||
|
@ -85,7 +83,7 @@ dbapi.setDeviceOwner = function(serial, owner) {
|
|||
}))
|
||||
}
|
||||
|
||||
dbapi.unsetDeviceOwner = function(serial, owner) {
|
||||
dbapi.unsetDeviceOwner = function(serial) {
|
||||
return db.run(r.table('devices').get(serial).update({
|
||||
owner: null
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue