Skip to content

Commit

Permalink
Revert D66839601: Remove unused-variable in xplat/js/react-native-git…
Browse files Browse the repository at this point in the history
…hub/packages/react-native/React/Base/RCTModuleData.mm +3

Differential Revision:
D66839601

Original commit changeset: dfba4aab6d73

Original Phabricator Diff: D66839601

fbshipit-source-id: 4d59b3616193dc184f0de7df8556f2b9b192df67
  • Loading branch information
javache authored and facebook-github-bot committed Dec 19, 2024
1 parent b8f3f91 commit 44ef2c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-native/React/Base/RCTModuleData.mm
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ - (void)gatherConstantsAndSignalJSRequireEnding:(BOOL)startMarkers
- (dispatch_queue_t)methodQueue
{
if (_bridge.valid) {
[[maybe_unused]] id instance = self.instance;
id instance = self.instance;
RCTAssert(_methodQueue != nullptr, @"Module %@ has no methodQueue (instance: %@)", self, instance);
}
return _methodQueue;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/React/Base/RCTUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ RCT_EXTERN BOOL RCTValidateTypeOfViewCommandArgument(
const NSString *argPos)
{
if (![obj isKindOfClass:expectedClass]) {
[[maybe_unused]] NSString *kindOfClass = RCTHumanReadableType(obj);
NSString *kindOfClass = RCTHumanReadableType(obj);

RCTLogError(
@"%@ command %@ received %@ argument of type %@, expected %@.",
Expand Down

0 comments on commit 44ef2c4

Please sign in to comment.