mirror of
https://github.com/apple/swift-crypto
synced 2026-11-27 04:54:21 +00:00
Remove try keywords to resolve UnnecessaryEffectMarker warnings
This commit is contained in:
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))
|
||||
|
||||
Reference in new issue
Block a user