Skip to content

Commit

Permalink
llintt
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate-Wessel committed Jan 17, 2024
1 parent 53ab378 commit 26e3c44
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/corridor.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ export class Corridor extends Factor {
get startCrossStreetsString(){
if(this.startCrossStreets.size > 0){
return [...this.startCrossStreets].join(' & ')
}else if(this.#intersections.length > 0){
return this.#intersections[0].displayCoords
}
try{ return this.#intersections[0].displayCoords }
catch { return }
return

Check failure on line 58 in frontend/src/corridor.js

View workflow job for this annotation

GitHub Actions / linting

Expected to return a value in getter 'startCrossStreetsString'
}
get endCrossStreets(){
try { return difference(this.#intersections[1].streetNames,this.viaStreets) }
Expand All @@ -63,9 +64,10 @@ export class Corridor extends Factor {
get endCrossStreetsString(){
if(this.endCrossStreets.size > 0){
return [...this.endCrossStreets].join(' & ')
}else if(this.#intersections.length > 1){
return this.#intersections[1].displayCoords
}
try{ return this.#intersections[1].displayCoords }
catch { return }
return

Check failure on line 70 in frontend/src/corridor.js

View workflow job for this annotation

GitHub Actions / linting

Expected to return a value in getter 'endCrossStreetsString'
}
get name(){
if(this.#intersections.length == 1){
Expand Down

0 comments on commit 26e3c44

Please sign in to comment.