Skip to content

Commit 233a12d

Browse files
committed
Ignore unused return value in tests
1 parent 3bd9559 commit 233a12d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ enum TemporaryFileHelpers {
287287
shortEnoughPath = path
288288
restoreSavedCWD = false
289289
} catch SocketAddressError.unixDomainSocketPathTooLong {
290-
FileManager.default.changeCurrentDirectoryPath(
290+
_ = FileManager.default.changeCurrentDirectoryPath(
291291
URL(fileURLWithPath: path).deletingLastPathComponent().absoluteString
292292
)
293293
shortEnoughPath = URL(fileURLWithPath: path).lastPathComponent
@@ -301,7 +301,7 @@ enum TemporaryFileHelpers {
301301
try? FileManager.default.removeItem(atPath: path)
302302
}
303303
if restoreSavedCWD {
304-
FileManager.default.changeCurrentDirectoryPath(saveCurrentDirectory)
304+
_ = FileManager.default.changeCurrentDirectoryPath(saveCurrentDirectory)
305305
}
306306
}
307307
return try body(shortEnoughPath)

0 commit comments

Comments
 (0)