Skip to content

Commit

Permalink
Merge pull request kif-framework#56 from square/kif-view-absence-error
Browse files Browse the repository at this point in the history
Removes unnecessary ternary statement from stepToWaitForAbsenceOfViewWith
  • Loading branch information
puls committed Aug 9, 2011
2 parents 9fbb231 + d4159b3 commit 999b583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/KIFTestStep.m
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ + (id)stepToWaitForAbsenceOfViewWithAccessibilityLabel:(NSString *)label value:(
return [self stepWithDescription:description executionBlock:^(KIFTestStep *step, NSError **error) {
UIAccessibilityElement *element = [self _accessibilityElementWithLabel:label accessibilityValue:value tappable:NO traits:traits error:error];
KIFTestWaitCondition(!element, error, @"Waiting for absence of accessibility element with the label \"%@\"", label);
return (element ? KIFTestStepResultWait : KIFTestStepResultSuccess);
return KIFTestStepResultSuccess;
}];
}

Expand Down

0 comments on commit 999b583

Please sign in to comment.