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

switch on return types for invokeObjCMethod instead of cascading if else #39591

Closed
wants to merge 3 commits into from

Conversation

philIip
Copy link
Contributor

@philIip philIip commented Sep 21, 2023

Summary:
Changelog: [Internal]

I'm refactoring this for a couple of reasons:

  1. it isolates the void execution path, which we are changing now
  2. switch case is safer than if else, in the future if we introduce new return types

Differential Revision: D49521866

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Sep 21, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

@analysis-bot
Copy link

analysis-bot commented Sep 21, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 16,902,224 -1
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,380,992 +3
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 4da0d44
Branch: main

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Sep 21, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Differential Revision: D49521866

fbshipit-source-id: 6934ba2d94211d7d67ace0e4eefeb6268fcdee49
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Sep 25, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: mdvacca

Differential Revision: D49521866

fbshipit-source-id: 8687df8799965479fae66e1e4733a97c1946cdb1
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Sep 25, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: mdvacca

Differential Revision: D49521866

fbshipit-source-id: 412ccbd8750b0f0e4194e30e718dd50adaf75725
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Sep 27, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: RSNara

Differential Revision: D49521866

fbshipit-source-id: 6c37943d680c5c6d387b2a984f3fb2b4d421bcc0
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Oct 2, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: RSNara

Differential Revision: D49521866

fbshipit-source-id: 3e3c2999a07db8faccdd38a85aaf859873fb4b5f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Oct 2, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: RSNara

Differential Revision: D49521866

fbshipit-source-id: 8637b1ea9967aa8ea8322dd05e570d44be02cf42
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Oct 3, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: RSNara

Differential Revision: D49521866

fbshipit-source-id: 4f92a3d5cbb536a2c0e5bce7dc33d9756c2511fe
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Oct 3, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: RSNara

Differential Revision: D49521866

fbshipit-source-id: 0b141e89426f52faefa84f04712c698f6e71d7fc
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Oct 3, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: RSNara

Differential Revision: D49521866

fbshipit-source-id: 672a2077de0077c28303ffc80aaeedab750be388
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Oct 3, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: RSNara

Differential Revision: D49521866

fbshipit-source-id: 664e472d57792c6f84a33d19df3a3322abc06d56
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Oct 3, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: RSNara

Differential Revision: D49521866

fbshipit-source-id: 77a43eed4e7014c5de60e8cee6f0d6ae8e2a68ba
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

philIip added a commit to philIip/react-native that referenced this pull request Oct 3, 2023
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: RSNara

Differential Revision: D49521866

fbshipit-source-id: 25158852bb24d8363c30ce42ba507a186df5470e
philIip and others added 3 commits October 3, 2023 11:14
Differential Revision: D49521864

fbshipit-source-id: b059c0201f7de1330fc85b8f542613b9bd40903c
Differential Revision: D49521863

fbshipit-source-id: 75dec87b0210386b37cbee20b144f32ec6a1dc05
…lse (facebook#39591)

Summary:
Pull Request resolved: facebook#39591

Changelog: [Internal]

I'm refactoring this for a couple of reasons:
1) it isolates the void execution path, which we are changing now
2) switch case is safer than if else, in the future if we introduce new return types

Reviewed By: RSNara

Differential Revision: D49521866

fbshipit-source-id: 3ef1458f308510be7a69b733099b70ae821e26df
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49521866

@github-actions
Copy link

github-actions bot commented Oct 3, 2023

Warnings
⚠️ One hour and a half have passed and the E2E jobs haven't finished yet.

Generated by 🚫 dangerJS against b0b9746

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

This pull request has been merged in 113de6e.

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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants