From 092d050fa01d22114ca446bfa09e1fbd32f6c645 Mon Sep 17 00:00:00 2001 From: Andrii Shumada Date: Wed, 16 Oct 2013 12:05:37 +0300 Subject: [PATCH] Do not call success callback right after error in request_url --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index 90e98c8..413a60b 100644 --- a/client.js +++ b/client.js @@ -8,7 +8,7 @@ var request = require('request'); var request_url = function(params, cb) { request(params, function(err, res, body) { if (err) { - cb(err); + return cb(err); } cb(null, body);