Fixes some warnings
This commit is contained in:
@@ -247,10 +247,6 @@ sealed class Proposal : TlsSerializable {
|
||||
ProposalType.EXTERNAL_INIT -> {
|
||||
ExternalInit(reader.readOpaqueVarInt())
|
||||
}
|
||||
|
||||
else -> {
|
||||
throw IllegalArgumentException("Unsupported proposal type: $type")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,8 +58,8 @@ sealed class Credential : TlsSerializable {
|
||||
writer.putVectorVarInt(
|
||||
certChain.map { cert ->
|
||||
object : TlsSerializable {
|
||||
override fun encodeTls(w: TlsWriter) {
|
||||
w.putOpaqueVarInt(cert)
|
||||
override fun encodeTls(writer: TlsWriter) {
|
||||
writer.putOpaqueVarInt(cert)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ class MarmotSubscriptionManagerTest {
|
||||
|
||||
assertEquals(listOf(GiftWrapEvent.KIND), filter.kinds)
|
||||
assertNotNull(filter.tags)
|
||||
assertEquals(listOf(userPubKey), filter.tags!!["p"])
|
||||
assertEquals(listOf(userPubKey), filter.tags["p"])
|
||||
assertNull(filter.since)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user