mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 09:05:20 +00:00
Fix unused variable warning in integration tests
Replace unused 'decrypted' binding with underscore to suppress warning
This commit is contained in:
@@ -208,7 +208,7 @@ final class IntegrationTests: XCTestCase {
|
|||||||
if packet.type == 0x01 {
|
if packet.type == 0x01 {
|
||||||
plainCount += 1
|
plainCount += 1
|
||||||
} else if packet.type == 0x02 {
|
} else if packet.type == 0x02 {
|
||||||
if let decrypted = try? self.noiseManagers["Bob"]!.decrypt(packet.payload, from: TestConstants.testPeerID1) {
|
if let _ = try? self.noiseManagers["Bob"]!.decrypt(packet.payload, from: TestConstants.testPeerID1) {
|
||||||
encryptedCount += 1
|
encryptedCount += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user