From a63a3fcdb68403bb5525e2b93525f15e97f50a1e Mon Sep 17 00:00:00 2001 From: Kremlin Date: Sun, 24 May 2015 14:06:49 +0100 Subject: [PATCH] fix formatting according to eslint settings --- index.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/index.js b/index.js index aee205647..6296fea27 100755 --- a/index.js +++ b/index.js @@ -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)