yet another fix 🐛

This commit is contained in:
Jannis R 2018-03-18 00:30:54 +01:00
parent ccd2dc0783
commit 94988d98c0
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -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 = {}) => {