mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 23:53:34 +02:00
eslint autofix
This commit is contained in:
@@ -413,15 +413,14 @@ function addAdbPublicKey(req, res) {
|
||||
.then(function(users) {
|
||||
return {
|
||||
key: {
|
||||
title: data.title || key.comment,
|
||||
fingerprint: key.fingerprint
|
||||
},
|
||||
users: users
|
||||
title: data.title || key.comment
|
||||
, fingerprint: key.fingerprint
|
||||
}
|
||||
, users: users
|
||||
}
|
||||
})
|
||||
})
|
||||
.then(function(data) {
|
||||
|
||||
if (data.users.length) {
|
||||
return res.json({
|
||||
success: true
|
||||
@@ -450,8 +449,8 @@ function addAdbPublicKey(req, res) {
|
||||
}).catch(function(err) {
|
||||
log.error('Failed to insert new adb key fingerprint: ', err.stack)
|
||||
return res.status(500).json({
|
||||
success: false,
|
||||
message: "Unable to insert new adb key fingerprint to database"
|
||||
success: false
|
||||
, message: 'Unable to insert new adb key fingerprint to database'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user