Skip to content

use TripleEqual instead of doubleEqual when comparing two string#37673

Closed
aymane-missouri-nw wants to merge 1 commit intofacebook:mainfrom
aymane-missouri-nw:enhance/use-tripleEq-insteadOf-doubleEq
Closed

use TripleEqual instead of doubleEqual when comparing two string#37673
aymane-missouri-nw wants to merge 1 commit intofacebook:mainfrom
aymane-missouri-nw:enhance/use-tripleEq-insteadOf-doubleEq

Conversation

@aymane-missouri-nw
Copy link
Copy Markdown
Contributor

@aymane-missouri-nw aymane-missouri-nw commented Jun 2, 2023

Summary

It is generally recommended to use "===" instead of "==" when comparing two strings

Test plan

Changelog:

[Internal] [Changed] - use TripleEqual instead of doubleEqual when comparing two string

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 2, 2023
@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Jun 2, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,744,583 -2
android hermes armeabi-v7a 8,056,427 +0
android hermes x86 9,235,544 -2
android hermes x86_64 9,086,365 -2
android jsc arm64-v8a 9,307,263 +1
android jsc armeabi-v7a 8,496,488 +2
android jsc x86 9,369,136 -3
android jsc x86_64 9,624,071 -3

Base commit: fd9e295
Branch: main

@aymane-missouri-nw aymane-missouri-nw force-pushed the enhance/use-tripleEq-insteadOf-doubleEq branch from 7a11324 to 6bf8fc7 Compare June 3, 2023 11:05
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 5, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cortinico merged this pull request in 805604d.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants