Fix indentation and dead-code from c&p in cucumber to silence eslint
This commit is contained in:
parent
5fb00ff7bf
commit
d52d530cbe
@ -85,8 +85,7 @@ module.exports = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var ok = true,
|
var ok = true,
|
||||||
encodedResult = '',
|
encodedResult = '';
|
||||||
extendedTarget = '';
|
|
||||||
|
|
||||||
if (json.trips) row.trips.split(',').forEach((sub, si) => {
|
if (json.trips) row.trips.split(',').forEach((sub, si) => {
|
||||||
if (si >= subTrips.length) {
|
if (si >= subTrips.length) {
|
||||||
@ -98,11 +97,9 @@ module.exports = function () {
|
|||||||
outNode = subTrips[si][ni];
|
outNode = subTrips[si][ni];
|
||||||
if (this.FuzzyMatch.matchLocation(outNode, node)) {
|
if (this.FuzzyMatch.matchLocation(outNode, node)) {
|
||||||
encodedResult += sub[ni];
|
encodedResult += sub[ni];
|
||||||
extendedTarget += sub[ni];
|
|
||||||
} else {
|
} else {
|
||||||
ok = false;
|
ok = false;
|
||||||
encodedResult += util.format('? [%s,%s]', outNode[0], outNode[1]);
|
encodedResult += util.format('? [%s,%s]', outNode[0], outNode[1]);
|
||||||
extendedTarget += util.format('%s [%d,%d]', sub[ni], node.lat, node.lon);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -238,9 +238,9 @@ module.exports = function () {
|
|||||||
// a shallow copy of scenario parameters to avoid data inconsistency
|
// a shallow copy of scenario parameters to avoid data inconsistency
|
||||||
// if a cucumber timeout occurs during deferred jobs
|
// if a cucumber timeout occurs during deferred jobs
|
||||||
let p = {extractArgs: this.extractArgs, contractArgs: this.contractArgs,
|
let p = {extractArgs: this.extractArgs, contractArgs: this.contractArgs,
|
||||||
partitionArgs: this.partitionArgs, customizeArgs: this.customizeArgs,
|
partitionArgs: this.partitionArgs, customizeArgs: this.customizeArgs,
|
||||||
profileFile: this.profileFile, inputCacheFile: this.inputCacheFile,
|
profileFile: this.profileFile, inputCacheFile: this.inputCacheFile,
|
||||||
processedCacheFile: this.processedCacheFile, environment: this.environment};
|
processedCacheFile: this.processedCacheFile, environment: this.environment};
|
||||||
let queue = d3.queue(1);
|
let queue = d3.queue(1);
|
||||||
queue.defer(this.extractData.bind(this), p);
|
queue.defer(this.extractData.bind(this), p);
|
||||||
queue.defer(this.partitionData.bind(this), p);
|
queue.defer(this.partitionData.bind(this), p);
|
||||||
|
Loading…
Reference in New Issue
Block a user