Skip to content

Commit b36751e

Browse files
committed
Fixed compile warning with initWithRequest.
1 parent 2facf5f commit b36751e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

iOS_SDK/OneSignalSDK/Source/OneSignalHelper.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ + (BOOL)downloadItemAtURL:(NSURL*)url toFile:(NSString *)localPath error:(NSErro
105105
NSMutableURLRequest* request = [[NSMutableURLRequest alloc] initWithURL:url];
106106

107107
DirectDownloadDelegate* delegate = [[DirectDownloadDelegate alloc] initWithFilePath:localPath];
108-
// TODO: Try cleaning up warning with connectionWithRequest
109-
[[NSURLConnection alloc] initWithRequest:request delegate:delegate];
108+
[NSURLConnection connectionWithRequest:request delegate:delegate];
110109

111110
while ([delegate isDone] == NO) {
112111
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1.0]];

0 commit comments

Comments
 (0)