Skip to content

Commit

Permalink
Introduce a static analyzer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
0xced committed Sep 14, 2015
1 parent c2a67d4 commit 273c834
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XCDYouTubeKit/XCDYouTubeVideoOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ - (void) startRequestWithURL:(NSURL *)url type:(XCDYouTubeRequestType)requestTyp
// Max (age-restricted VEVO) = 2×GetVideoInfo + 1×WatchPage + 1×EmbedPage + 1×JavaScriptPlayer + 1×GetVideoInfo
if (++self.requestCount > 6)
{
id value = nil;
[@{ @"key": value } self];
// This condition should never happen but the request flow is quite complex so better abort here than go into an infinite loop of requests
[self finishWithError];
return;
Expand Down

0 comments on commit 273c834

Please sign in to comment.