Skip to content

Commit

Permalink
fix formatting according to eslint settings
Browse files Browse the repository at this point in the history
  • Loading branch information
samjross committed May 24, 2015
1 parent f5eaea8 commit a63a3fc
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,23 @@ function request (uri, options, callback) {
return new request.Request(params)
}

(function(){
var verbFunc = function(verb){
var method = verb === 'del' ? 'DELETE' : verb.toUpperCase();
(function() {
var verbFunc = function(verb) {
var method = verb === 'del' ? 'DELETE' : verb.toUpperCase()
return function (uri, options, callback) {
var params = initParams(uri, options, callback);
params.method = method;
var params = initParams(uri, options, callback)
params.method = method
return request(params, params.callback)
}
};

request.get = verbFunc('get');
request.head = verbFunc('head');
request.post = verbFunc('post');
request.put = verbFunc('put');
request.patch = verbFunc('patch');
request.del = verbFunc('del');
})();
}

request.get = verbFunc('get')
request.head = verbFunc('head')
request.post = verbFunc('post')
request.put = verbFunc('put')
request.patch = verbFunc('patch')
request.del = verbFunc('del')
})()

request.jar = function (store) {
return cookies.jar(store)
Expand Down

0 comments on commit a63a3fc

Please sign in to comment.