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

Update Equality Operators to Be Type-Safe #502

Closed
wants to merge 2 commits into from
Closed

Update Equality Operators to Be Type-Safe #502

wants to merge 2 commits into from

Conversation

AdityaRanjanJha
Copy link
Contributor

Description

This pull request addresses the issue of using non-type-safe equality operators (== and !=) in the codebase. It replaces these operators with type-safe equality operators (=== and !==) to ensure more reliable and predictable comparisons.

Type of change

  • Replaced instances of == with === for equality checks.
  • Replaced instances of != with !== for inequality checks.

How Has This Been Tested?

The code has been tested to ensure that the replacement of equality operators does not introduce any new issues. Existing test cases pass successfully.

  • Local manual testing via "./manage runserver"
  • Local Python Unit Testing via "./manage test"
  • Local Cypress E2E Testing
  • Tested on virtual box
  • Tested on server

Checklist:

  • The code builds without errors.
  • Existing tests pass successfully.
  • Documentation has been updated if necessary.
  • Code follows the project's coding standards.

Related Issues

Closes #495 (Replace non-type-safe equality operators)

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

Successfully merging this pull request may close these issues.

(JS-0050) Avoid use of == and !=
2 participants