Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Commit

Permalink
Updated code according to some JSLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jayharris committed Jan 18, 2013
1 parent cbe8c19 commit 11b2d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/morale.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var makeRequest = function(reqOptions, reqData, callback) {
req.end();
};

var _makeAnonymousRequest = function(reqHost, reqPath, reqMethod, reqData, callback) {
var makeAnonymousRequest = function(reqHost, reqPath, reqMethod, reqData, callback) {
if (typeof reqData === 'function') {
callback = reqData;
reqData = undefined;
Expand Down Expand Up @@ -148,7 +148,7 @@ module.exports.GetApiToken = function(subdomain, email, password, callback) {

var authenticationBody = util.format("email=%s&password=%s", email, password);
var requestHost = subdomain + ".teammorale.com";
_makeAnonymousRequest.call(this, requestHost, '/api/v1/in', 'POST', authenticationBody, callback);
makeAnonymousRequest.call(this, requestHost, '/api/v1/in', 'POST', authenticationBody, callback);
return this;
};

Expand Down

0 comments on commit 11b2d0e

Please sign in to comment.