From 001351cb067e3553bb551b806fc569fffb385b37 Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Thu, 15 Oct 2015 13:18:21 +0500 Subject: [PATCH] Merge default values in one object --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 41675d6..67705d8 100644 --- a/index.js +++ b/index.js @@ -203,9 +203,8 @@ function normalizeArguments(url, opts) { } opts = objectAssign( - {protocol: 'http:', path: ''}, + {protocol: 'http:', path: '', retries: 5}, url, - {retries: 5}, opts );