Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions fb.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@
//
//
if(typeof arguments[0] === 'string') {
graph.apply(this, arguments);
return graph.apply(this, arguments);
} else {
rest.apply(this, arguments);
return rest.apply(this, arguments);
}
};

Expand Down Expand Up @@ -194,7 +194,7 @@
return;
}

oauthRequest('graph', path, method, params, cb);
return oauthRequest('graph', path, method, params, cb);
};

/**
Expand All @@ -209,7 +209,7 @@

params.format = 'json-strings';
var domain = readOnlyCalls[method] ? 'api_read' : 'api';
oauthRequest(domain, 'restserver.php', 'get', params, cb);
return oauthRequest(domain, 'restserver.php', 'get', params, cb);
};

/**
Expand Down Expand Up @@ -317,7 +317,7 @@
if(options('timeout')) {
requestOptions['timeout'] = options('timeout');
}
request(requestOptions
return request(requestOptions
, function(error, response, body) {
if(error !== null) {
if(error === Object(error) && has(error, 'error')) {
Expand Down Expand Up @@ -651,7 +651,7 @@
if(options('proxy')) {
requestOptions['proxy'] = options('proxy');
}
request(
requestOptions
, function(error, response, body) {
Expand Down