Skip to content

Commit

Permalink
Change comparison to OR Operator
Browse files Browse the repository at this point in the history
  • Loading branch information
SoneeJohn committed Feb 24, 2020
1 parent 4e53d7d commit ca0b797
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions XCDYouTubeKit/XCDYouTubeVideoQueryOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ - (instancetype)initWithVideo:(XCDYouTubeVideo *)video streamURLsToQuery:(NSDict

for (id key in streamURLsToQuery)
{
//Has to contain the same key and value of in the `video` object `streamURLs` or we skip
if (_video.streamURLs[key] == nil && [(NSURL *)_video.streamURLs[key] isEqual:(NSURL *)streamURLsToQuery[key]] == NO)
//If the `video` object `streamURLs` does not contain this key we skip.
//Or, if value of the key isn't in the `video` object `streamURLs` we also skip.
if (_video.streamURLs[key] == nil || [(NSURL *)_video.streamURLs[key] isEqual:(NSURL *)streamURLsToQuery[key]] == NO)
{
continue;
}
Expand Down

0 comments on commit ca0b797

Please sign in to comment.