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

Fix anti-pattern comparison test: use of is when comparing the type of two objects #75

Merged
merged 1 commit into from
Jun 3, 2022
Merged

Fix anti-pattern comparison test: use of is when comparing the type of two objects #75

merged 1 commit into from
Jun 3, 2022

Conversation

ThibFrgsGmz
Copy link
Contributor

Originating Project/Creator
Affected Component
Affected Architectures(s)
Related Issue(s) (void)
Has Unit Tests (y/n) n
Builds Without Errors (y/n) Let CI run
Unit Tests Pass (y/n) Let CI run
Documentation Included (y/n) n

Change Description

This PR aims to correct an antipattern issue regarding a bad comparison identity test.

Rationale

It is recommended to use the identity test ( is ) instead of the equality test ( == ) when we need to compare the types of two objects.

Testing/Review Recommendations

(void)

Future Work

(void)

It is recommended to use the identity test ( is ) instead of the equality test ( == ) when we need to compare the types of two objects.
@LeStarch LeStarch closed this May 31, 2022
@LeStarch LeStarch reopened this May 31, 2022
@LeStarch LeStarch merged commit 2118504 into nasa:devel Jun 3, 2022
@ThibFrgsGmz ThibFrgsGmz deleted the feat/bad-comparison-test branch July 20, 2022 21:28
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.

None yet

2 participants