Fix indentation and dead-code from c&p in cucumber to silence eslint

This commit is contained in:
Patrick Niklaus 2017-07-04 22:53:02 +00:00 committed by Patrick Niklaus
parent 5fb00ff7bf
commit d52d530cbe
2 changed files with 4 additions and 7 deletions

View File

@ -85,8 +85,7 @@ module.exports = function () {
}
var ok = true,
encodedResult = '',
extendedTarget = '';
encodedResult = '';
if (json.trips) row.trips.split(',').forEach((sub, si) => {
if (si >= subTrips.length) {
@ -98,11 +97,9 @@ module.exports = function () {
outNode = subTrips[si][ni];
if (this.FuzzyMatch.matchLocation(outNode, node)) {
encodedResult += sub[ni];
extendedTarget += sub[ni];
} else {
ok = false;
encodedResult += util.format('? [%s,%s]', outNode[0], outNode[1]);
extendedTarget += util.format('%s [%d,%d]', sub[ni], node.lat, node.lon);
}
}
}