Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored JS template building extra styles for rail_station_row and rail_interchange_row #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xingrz
Copy link

@xingrz xingrz commented Aug 28, 2024

This PR refactors the JavaScript template of extra_styles for rail_station_row and rail_interchange_row to improve maintainability.

Nested ternary expressions have been minimized, with string concatenation replaced by JS string templates where possible. Additionally, some repetitive conditions have been encapsulated into functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant