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 b3d7d74 commit 08f9139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Classes/RSUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ + (NSString*) serializeSpecialFloatingNumber: (NSNumber *) number {
}

+(NSArray*) extractParamFromURL: (NSURL*) deepLinkURL{
NSArray<NSURLQueryItem *> *queryItems;
NSMutableArray<NSURLQueryItem *> *queryItems = [NSMutableArray array];
if (deepLinkURL) {
// Create NSURLComponents object
NSURLComponents *components = [NSURLComponents componentsWithURL:deepLinkURL resolvingAgainstBaseURL:NO];
Expand All @@ -286,7 +286,7 @@ +(NSArray*) extractParamFromURL: (NSURL*) deepLinkURL{
queryItems = components.queryItems;

}
return queryItems;
return queryItems;
}
unsigned int MAX_EVENT_SIZE = 32 * 1024; // 32 KB
unsigned int MAX_BATCH_SIZE = 500 * 1024; // 500 KB
Expand Down

0 comments on commit 08f9139

Please sign in to comment.