Skip to content

Commit

Permalink
Minor code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ap4y committed Jun 6, 2013
1 parent bd1f7da commit 93a5b3d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions OrigamiEngine/ORGMEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,13 @@ - (void)observeValueForKeyPath:(NSString *)keyPath
[_delegate engine:self didChangeState:_currentState];
});
} else if ([keyPath isEqualToString:@"endOfInput"]) {
NSURL* nextUrl = [_delegate engineExpectsNextUrl:self];
if (nextUrl) {
dispatch_async(dispatch_get_main_queue(), ^{
[self setNextUrl:nextUrl withDataFlush:NO];
});
}
NSURL *nextUrl = [_delegate engineExpectsNextUrl:self];
if (!nextUrl)
return;

dispatch_async(dispatch_get_main_queue(), ^{
[self setNextUrl:nextUrl withDataFlush:NO];
});
}
}

Expand Down

0 comments on commit 93a5b3d

Please sign in to comment.