forked from microsoft/react-native-macos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch on return types for invokeObjCMethod instead of cascading if e…
…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: 451c846ca15cc470cfeb5b2326d6eb2ffec74b25
- Loading branch information
1 parent
36a202b
commit 113de6e
Showing
1 changed file
with
35 additions
and
23 deletions.
There are no files selected for viewing
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