From 8dd82d40a72def55b16603e728d9a744398ffaa9 Mon Sep 17 00:00:00 2001 From: Dhiogo Brustolin Date: Thu, 21 Apr 2022 10:35:40 +0200 Subject: [PATCH] fixing merge --- Sources/Sentry/SentryClient.m | 8 ++++---- Tests/SentryTests/SentryClientTests.swift | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/Sentry/SentryClient.m b/Sources/Sentry/SentryClient.m index a3a853dfac2..af3d9cebd70 100644 --- a/Sources/Sentry/SentryClient.m +++ b/Sources/Sentry/SentryClient.m @@ -145,7 +145,7 @@ - (SentryId *)captureException:(NSException *)exception - (SentryId *)captureException:(NSException *)exception withScope:(SentryScope *)scope { - SentryEvent *event = [self buildExceptionEvent:exception scope:scope]; + SentryEvent *event = [self buildExceptionEvent:exception]; return [self sendEvent:event withScope:scope alwaysAttachStacktrace:YES]; } @@ -153,7 +153,7 @@ - (SentryId *)captureException:(NSException *)exception withSession:(SentrySession *)session withScope:(SentryScope *)scope { - SentryEvent *event = [self buildExceptionEvent:exception scope:scope]; + SentryEvent *event = [self buildExceptionEvent:exception]; event = [self prepareEvent:event withScope:scope alwaysAttachStacktrace:YES]; return [self sendEvent:event withSession:session withScope:scope]; } @@ -176,7 +176,7 @@ - (SentryId *)captureError:(NSError *)error - (SentryId *)captureError:(NSError *)error withScope:(SentryScope *)scope { - SentryEvent *event = [self buildErrorEvent:error scope:scope]; + SentryEvent *event = [self buildErrorEvent:error]; return [self sendEvent:event withScope:scope alwaysAttachStacktrace:YES]; } @@ -184,7 +184,7 @@ - (SentryId *)captureError:(NSError *)error withSession:(SentrySession *)session withScope:(SentryScope *)scope { - SentryEvent *event = [self buildErrorEvent:error scope:scope]; + SentryEvent *event = [self buildErrorEvent:error]; event = [self prepareEvent:event withScope:scope alwaysAttachStacktrace:YES]; return [self sendEvent:event withSession:session withScope:scope]; } diff --git a/Tests/SentryTests/SentryClientTests.swift b/Tests/SentryTests/SentryClientTests.swift index f3b8693afab..cea599d7e9d 100644 --- a/Tests/SentryTests/SentryClientTests.swift +++ b/Tests/SentryTests/SentryClientTests.swift @@ -255,8 +255,8 @@ class SentryClientTest: XCTestCase { let sentAttachments = fixture.transportAdapter.sentEventsWithSessionTraceState.first?.attachments ?? [] - XCTAssertEqual(sendedAttachments.count, 1) - XCTAssertEqual(extraAttachment, sendedAttachments.first) + XCTAssertEqual(sentAttachments.count, 1) + XCTAssertEqual(extraAttachment, sentAttachments.first) } func test_AttachmentProcessor_CaptureError_WithSession_NoReleaseName() {