-
Notifications
You must be signed in to change notification settings - Fork 601
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
fast-element: Simplify fromView logic and element-controller checks #7047
Merged
janechu
merged 7 commits into
microsoft:master
from
doguabaris:simplify-conditional-checks
Dec 11, 2024
Merged
fast-element: Simplify fromView logic and element-controller checks #7047
janechu
merged 7 commits into
microsoft:master
from
doguabaris:simplify-conditional-checks
Dec 11, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Replace the ternary operator with a direct negation in the fromView method. This change enhances code readability and ensures consistent handling of null, undefined, false, and zero values.
Renamed the `value` parameter to `newValue` in the `setValue` method of the `attributes.ts` file.
Replaced explicit boolean comparisons with direct truthy and falsy checks in the `connectBehaviors` and `disconnectBehaviors` methods.
@microsoft-github-policy-service agree
β¦ On 6 Dec 2024, at 12:59β―PM, microsoft-github-policy-service[bot] ***@***.***> wrote:
@doguabaris <https://github.com/doguabaris> please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]
Options:
(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term βYouβ includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"
Contributor License Agreement
<http://www.opensource.org/>
β
Reply to this email directly, view it on GitHub <#7047 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BANP4BTKWBCHCA4EWDLGT5D2EGGQLAVCNFSM6AAAAABTEQRGN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRTGA2TONZYG4>.
You are receiving this because you were mentioned.
|
Hi @doguabaris, thanks for the PR, can you include a changefile by running |
This was referenced Dec 10, 2024
β¦thod - Added a detailed description for the newValue parameter in the setValue method. - Ensures better clarity and documentation for the method's functionality.
doguabaris
changed the title
Simplify conditional checks
fast-element: Simplify fromView logic and element-controller checks
Dec 10, 2024
janechu
approved these changes
Dec 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
π Description
π« Issues
π©βπ» Reviewer Notes
π Test Plan
β Checklist
General
$ npm run change
β Next Steps