This is an automated email from the ASF dual-hosted git repository. toulmean pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
commit e00bc1535bb1a9f73df1e1b3e32e863e61660280 Author: Antoine Toulme <[email protected]> AuthorDate: Sat Jun 6 15:56:34 2020 -0700 fix kotlin warning --- les/src/main/kotlin/org/apache/tuweni/les/LESSubProtocolHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/les/src/main/kotlin/org/apache/tuweni/les/LESSubProtocolHandler.kt b/les/src/main/kotlin/org/apache/tuweni/les/LESSubProtocolHandler.kt index 3a7c0c9..7a538a3 100644 --- a/les/src/main/kotlin/org/apache/tuweni/les/LESSubProtocolHandler.kt +++ b/les/src/main/kotlin/org/apache/tuweni/les/LESSubProtocolHandler.kt @@ -165,7 +165,7 @@ internal class LESSubProtocolHandler( override fun handleNewPeerConnection(connectionId: String): AsyncCompletion { return asyncCompletion { - val head = repo.retrieveChainHead()!! + val head = repo.retrieveChainHead() val genesis = repo.retrieveGenesisBlock() val headTd = head.getHeader().getDifficulty() val headHash = head.getHeader().getHash() --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
