Skip to content

Commit e72bece

Browse files
committed
benchmarks: fix warnings
1 parent 3fbd612 commit e72bece

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/single-source/unit-tests/ObjectiveCBridgingStubs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func testObjectiveCBridgeStubURLAppendPath() {
169169
for _ in 0 ..< 10_000 {
170170
var url = startUrl
171171
for _ in 0 ..< 10 {
172-
try! url.appendPathComponent("foo")
172+
url.appendPathComponent("foo")
173173
}
174174
}
175175
}

benchmark/single-source/unit-tests/ObjectiveCNoBridgingStubs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func testObjectiveCBridgeStubURLAppendPathRef() {
134134
for _ in 0 ..< 10_000 {
135135
var url = startUrl
136136
for _ in 0 ..< 10 {
137-
url = try! url.appendingPathComponent("foo")
137+
url = url.appendingPathComponent("foo")
138138
}
139139
}
140140
}

0 commit comments

Comments
 (0)