eslint autofix

This commit is contained in:
Akhmad Fathonih
2017-12-05 17:43:56 +09:00
parent 56e18dd9c7
commit 7e98e4f503
2 changed files with 11 additions and 12 deletions

View File

@@ -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'
})
})
}
}