Skip to content

Commit

Permalink
Fix type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapominacz committed Jun 28, 2023
1 parent dd7c0b5 commit 1c7c028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Plugin/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class SentryCapacitor: CAPPlugin {
}

@objc func captureEnvelope(_ call: CAPPluginCall) {
guard let bytes = call.getArray("envelope", Array<NSNumber>.Type.self) as? [NSNumber] else {
guard let bytes = call.getArray("envelope", NSNumber.self) else {
print("Cannot parse the envelope data")
call.reject("Envelope is null or empty")
return
Expand Down

0 comments on commit 1c7c028

Please sign in to comment.