Skip to content

Commit

Permalink
style(shapes): Fix linter issues
Browse files Browse the repository at this point in the history
Fix linter issues
  • Loading branch information
David Emory committed Nov 2, 2016
1 parent 2030be2 commit 272b1ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/core/journey.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function Journey (data, network) {
segmentInfo.from_stop_index, segmentInfo.to_stop_index)
}
} else { // non-transit segment

var streetEdges = []
// screen out degenerate transfer segments
if (segmentInfo.from.type === 'STOP' && segmentInfo.to.type === 'STOP' &&
Expand Down
8 changes: 4 additions & 4 deletions lib/graph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ NetworkGraph.prototype.splitEdgeAtInternalPoints = function (edge, points) {

// iterate through the parent edge points, creating new sub-edges as needed
each(edge.pointArray, function (point, i) {
if(edge.pointGeom && i < edge.pointGeom.length) {
if (edge.pointGeom && i < edge.pointGeom.length) {
geomCoords = geomCoords.concat(edge.pointGeom[i])
}
if (points.indexOf(point) !== -1) { // we've reached a split point
Expand All @@ -262,7 +262,7 @@ NetworkGraph.prototype.splitEdgeAtInternalPoints = function (edge, points) {
graphEdge: newEdge,
fromVertex: fromVertex
})
if(geomCoords.length > 0) newEdge.geomCoords = geomCoords
if (geomCoords.length > 0) newEdge.geomCoords = geomCoords

subEdgePoints = []
fromVertex = newVertex
Expand All @@ -277,10 +277,10 @@ NetworkGraph.prototype.splitEdgeAtInternalPoints = function (edge, points) {
.type)
newEdge.isInternal = true
newEdge.copyPathSegments(edge)
if(edge.pointGeom && edge.pointArray.length < edge.pointGeom.length) {
if (edge.pointGeom && edge.pointArray.length < edge.pointGeom.length) {
geomCoords = geomCoords.concat(edge.pointGeom[edge.pointArray.length])
}
if(geomCoords.length > 0) newEdge.geomCoords = geomCoords
if (geomCoords.length > 0) newEdge.geomCoords = geomCoords

newEdgeInfoArr.push({
graphEdge: newEdge,
Expand Down

0 comments on commit 272b1ff

Please sign in to comment.