Skip to content

Commit 226a9e4

Browse files
authored
fix: don't call stringValue of strings (#253)
1 parent 67a62b6 commit 226a9e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/ios/RNAnalytics/RNAnalytics.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,19 @@ +(void)initialize {
7676
NSURLComponents *components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:NO];
7777

7878
if ([proxyOptions valueForKey:@"scheme"]) {
79-
components.scheme = [proxyOptions[@"scheme"] stringValue];
79+
components.scheme = proxyOptions[@"scheme"];
8080
}
8181

8282
if ([proxyOptions valueForKey:@"host"]) {
83-
components.host = [proxyOptions[@"host"] stringValue];
83+
components.host = proxyOptions[@"host"];
8484
}
8585

8686
if ([proxyOptions valueForKey:@"port"]) {
8787
components.port = [NSNumber numberWithInt:[proxyOptions[@"port"] intValue]];
8888
}
8989

9090
if ([proxyOptions valueForKey:@"path"]) {
91-
components.path = [[proxyOptions[@"path"] stringValue] stringByAppendingString:components.path];
91+
components.path = [proxyOptions[@"path"] stringByAppendingString:components.path];
9292
}
9393

9494
NSURL *transformedURL = components.URL;

0 commit comments

Comments
 (0)