From 94988d98c0af6991bf861204cdb064ca600eb172 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sun, 18 Mar 2018 00:30:54 +0100 Subject: [PATCH] yet another fix :bug: --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index b6c82e3a..a51b805d 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ const _request = require('./lib/request') const isNonEmptyString = str => 'string' === typeof str && str.length > 0 -const createClient = (_profile, request = _request) => { +const createClient = (profile, request = _request) => { profile = Object.assign({}, defaultProfile, profile) if (!profile.parseProducts) { profile.parseProducts = createParseBitmask(profile) @@ -20,7 +20,6 @@ const createClient = (_profile, request = _request) => { if (!profile.formatProductsFilter) { profile.formatProductsFilter = createFormatProductsFilter(profile) } - }, defaultProfile, profile) validateProfile(profile) const departures = (station, opt = {}) => {