Increase readability of authenticate()

This commit is contained in:
Juan Cruz Viotti 2014-12-08 10:16:37 -04:00
parent 25eedd22a0
commit 9bfd686c5c

@ -24,7 +24,8 @@ settings = require('../settings')
#
exports.authenticate = (credentials, callback) ->
server.post settings.get('urls.authenticate'), credentials, (error, response) ->
return callback(error, response?.body)
savedToken = response?.body
return callback(error, savedToken)
# Login to Resin.io
#