Skip to content

Commit

Permalink
vbb-lines@4
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jun 1, 2018
1 parent 292c125 commit ae4203b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ lines('all')
.on('data', (line) => {
for (let variant of line.variants) {
// for (let stopId of variant) {
for (let i = 0; i < (variant.length - 1); i++) {
const from = stationOf[variant[i]]
for (let i = 0; i < (variant.stops.length - 1); i++) {
const from = stationOf[variant.stops[i]]
if (!from) {
console.error('unkown station for stop ' + variant[i])
console.error('unkown station for stop ' + variant.stops[i])
continue
}
const to = stationOf[variant[i + 1]]
const to = stationOf[variant.stops[i + 1]]
if (!to) {
console.error('unkown station for stop ' + variant[i + 1])
console.error('unkown station for stop ' + variant.stops[i + 1])
continue
}
if (from === to) continue // wat
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"devDependencies": {
"tap-min": "^1.2.1",
"tape": "^4.6.3",
"vbb-lines": "^3.3.0",
"vbb-lines": "^4.1.0",
"vbb-stations": "^6.2.0"
},
"scripts": {
Expand Down

0 comments on commit ae4203b

Please sign in to comment.