Permalink
Browse files

Fixing compiler warning

Summary:
Compiler is giving a warning about an unused variable.

Tested by compiling the source code and verifying the warning is removed.
Closes #13819

Differential Revision: D5189680

Pulled By: shergin

fbshipit-source-id: 89848fcd3e988d1c256b315cfa2ef60a62c2ad56
  • Loading branch information...
Alex Kring authored and facebook-github-bot committed Jun 6, 2017
1 parent a324965 commit 407b8b4d1f731989f1fb6173750e4cbd96b4b4e2
Showing with 4 additions and 1 deletion.
  1. +4 −1 Libraries/RCTTest/RCTTestRunner.m
@@ -141,11 +141,14 @@ - (void)runTest:(SEL)test module:(NSString *)moduleName
RCTSetLogFunction(defaultLogFunction);
#if RCT_DEV
NSArray<UIView *> *nonLayoutSubviews = [vc.view.subviews filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(id subview, NSDictionary *bindings) {
return ![NSStringFromClass([subview class]) isEqualToString:@"_UILayoutGuide"];
}]];
RCTAssert(nonLayoutSubviews.count == 0, @"There shouldn't be any other views: %@", nonLayoutSubviews);
RCTAssert(nonLayoutSubviews.count == 0, @"There shouldn't be any other views: %@", nonLayoutSubviews);
#endif
if (expectErrorBlock) {
RCTAssert(expectErrorBlock(error), @"Expected an error but nothing matched.");
} else {

0 comments on commit 407b8b4

Please sign in to comment.