Skip to content

Commit

Permalink
chore: address the sonarcloud issue
Browse files Browse the repository at this point in the history
This fix fill eliminate the possibility of returning null pointer/ null reference
  • Loading branch information
SKannaniOS committed Jul 30, 2024
1 parent 26c8269 commit 08761d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Classes/RSUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,9 @@ +(NSArray*) extractParamFromURL: (NSURL*) deepLinkURL{
NSURLComponents *components = [NSURLComponents componentsWithURL:deepLinkURL resolvingAgainstBaseURL:NO];

// Get the query items
if (components.queryItems) {
if (components.queryItems != nil) {
queryItems = components.queryItems;
}

}
return queryItems;
}
Expand Down

0 comments on commit 08761d7

Please sign in to comment.