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

front: make ch check more robust in updatePathStepsFromOperationalPoints() #8631

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

emersion
Copy link
Member

The PathItemLocation type definition allows for null secondary_code such as:

{ uic: 42, secondary_code: null }

and this is equivalent to:

{ uic: 42 }

Make the logic more future-proof by checking whether the property is truthy instead of checking if step has a secondary_code property.

…nts()

The PathItemLocation type definition allows for null secondary_code
such as:

    { uic: 42, secondary_code: null }

and this is equivalent to:

    { uic: 42 }

Make the logic more future-proof by checking whether the property
is truthy instead of checking if step has a secondary_code property.
@emersion emersion requested a review from a team as a code owner August 29, 2024 16:11
@emersion emersion self-assigned this Aug 29, 2024
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm ! Not related to your PR but I just noticed this condition const, I think the term is a bit weird.

@emersion emersion added this pull request to the merge queue Aug 30, 2024
Merged via the queue into dev with commit 931e582 Aug 30, 2024
22 checks passed
@emersion emersion deleted the emr/drop-always-true-conditionals branch August 30, 2024 08:40
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.

3 participants