undo prior changes to index.js

This commit is contained in:
dabund24 2025-01-09 00:12:54 +01:00
parent 146f014eb8
commit c6ea1a5d8c

View file

@ -146,9 +146,6 @@ const createClient = (profile, userAgent, opt = {}) => {
}
journeysRef = opt.laterThan;
}
if (opt?.transfers === -1) { // having `transfers` set to -1 may not be allowed, see https://github.com/public-transport/db-vendo-client/issues/5
opt.transfers = null;
}
opt = Object.assign({
results: null, // number of journeys `null` means "whatever HAFAS returns"