Remove try keywords to resolve UnnecessaryEffectMarker warnings

This commit is contained in:
Si Beaumont committed 2026-08-05 13:22:07 +01:00
1 parent 9fc4058c1d
commit 8979b7465c
2 files changed
+2 -2

No files matched your search

@@ -92,7 +92,7 @@ enum OpenSSLAESGCMSIVImpl {
)
}
return try AES.GCM._SIV.SealedBox(combined: combined, nonceByteCount: nonce.bytes.count)
return AES.GCM._SIV.SealedBox(combined: combined, nonceByteCount: nonce.bytes.count)
}
@inlinable
@@ -151,7 +151,7 @@ class AESGCMTests: XCTestCase {
let ciphertext = Array("This pretty clearly isn't ciphertext, but sure why not".utf8)
let (contiguousCiphertext, discontiguousCiphertext) = ciphertext.asDataProtocols()
let contiguousSB = try orFail { try AES.GCM.SealedBox(combined: contiguousCiphertext) }
let contiguousSB = try orFail { AES.GCM.SealedBox(combined: contiguousCiphertext) }
let discontiguousSB = try orFail { try AES.GCM.SealedBox(combined: discontiguousCiphertext) }
XCTAssertEqual(contiguousSB.combined, discontiguousSB.combined)
XCTAssertEqual(Array(contiguousSB.nonce), Array(discontiguousSB.nonce))