Skip to content

Commit a6996ed

Browse files
committed
PR feedback
1 parent f222e4d commit a6996ed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Swift/Tools/SentryScreenshot.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import UIKit
1919

2020
/// Get a screenshot of every open window in the app.
2121
/// - Returns: An array of UIImage instances.
22-
@discardableResult public func appScreenshotsFromMainThread() -> [UIImage] {
22+
public func appScreenshotsFromMainThread() -> [UIImage] {
2323
var result: [UIImage] = []
2424

2525
let takeScreenShot = { result = self.appScreenshots() }
@@ -84,7 +84,7 @@ import UIKit
8484
return result
8585
}
8686

87-
@discardableResult public func appScreenshotsData() -> [Data] {
87+
public func appScreenshotsData() -> [Data] {
8888
let screenshots = appScreenshots()
8989
var result: [Data] = []
9090
result.reserveCapacity(screenshots.count)

Tests/SentryTests/SentryScreenShotTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class SentryScreenShotTests: XCTestCase {
4141
let expect = expectation(description: "Screenshot")
4242
let queue = DispatchQueue(label: "TestQueue")
4343
let _ = queue.async {
44-
self.fixture.sut.appScreenshotsFromMainThread()
44+
_ = self.fixture.sut.appScreenshotsFromMainThread()
4545
expect.fulfill()
4646
}
4747
wait(for: [expect], timeout: 1)
@@ -65,7 +65,7 @@ class SentryScreenShotTests: XCTestCase {
6565

6666
fixture.uiApplication.windows = [firstWindow, secondWindow]
6767

68-
self.fixture.sut.appScreenshotsData()
68+
_ = self.fixture.sut.appScreenshotsData()
6969

7070
XCTAssertTrue(drawFirstWindow)
7171
XCTAssertTrue(drawSecondWindow)

0 commit comments

Comments
 (0)