Skip to content

Commit 523f213

Browse files
authored
Merge pull request #27 from eliperkins/remove-superfluous-converts
Remove superfluous calls to RCTConvert
2 parents 6b23369 + dc02087 commit 523f213

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ios/RNSentry.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ + (NSRegularExpression *)frameRegex {
7272

7373
RCT_EXPORT_METHOD(startWithDsnString:(NSString * _Nonnull)dsnString)
7474
{
75-
[SentryClient setShared:[[SentryClient alloc] initWithDsnString:[RCTConvert NSString:dsnString]]];
75+
[SentryClient setShared:[[SentryClient alloc] initWithDsnString:dsnString]];
7676
[[SentryClient shared] startCrashHandler];
7777
}
7878

@@ -111,7 +111,7 @@ + (NSRegularExpression *)frameRegex {
111111

112112
RCT_EXPORT_METHOD(captureMessage:(NSString * _Nonnull)message level:(int)level)
113113
{
114-
[[SentryClient shared] captureMessage:[RCTConvert NSString:message] level:level];
114+
[[SentryClient shared] captureMessage:message level:level];
115115
}
116116

117117
RCT_EXPORT_METHOD(setLogLevel:(int)level)
@@ -121,12 +121,12 @@ + (NSRegularExpression *)frameRegex {
121121

122122
RCT_EXPORT_METHOD(setExtras:(NSDictionary * _Nonnull)extras)
123123
{
124-
[SentryClient shared].extra = [RCTConvert NSDictionary:extras];
124+
[SentryClient shared].extra = extras;
125125
}
126126

127127
RCT_EXPORT_METHOD(setTags:(NSDictionary * _Nonnull)tags)
128128
{
129-
[SentryClient shared].tags = [self sanitizeDictionary:[RCTConvert NSDictionary:tags]];
129+
[SentryClient shared].tags = [self sanitizeDictionary:tags];
130130
}
131131

132132
RCT_EXPORT_METHOD(setUser:(NSDictionary * _Nonnull)user)

0 commit comments

Comments
 (0)