From 2ef3f21aae72cc916f33c28c3322d88700c2106d Mon Sep 17 00:00:00 2001 From: gouri-panda Date: Thu, 12 Nov 2020 16:57:33 +0530 Subject: [PATCH] reformated code --- .../kiwix/kiwixmobile/localFileTransfer/PeerGroupHandshake.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/kiwix/kiwixmobile/localFileTransfer/PeerGroupHandshake.kt b/app/src/main/java/org/kiwix/kiwixmobile/localFileTransfer/PeerGroupHandshake.kt index 1bf72a72a..c269b7dec 100644 --- a/app/src/main/java/org/kiwix/kiwixmobile/localFileTransfer/PeerGroupHandshake.kt +++ b/app/src/main/java/org/kiwix/kiwixmobile/localFileTransfer/PeerGroupHandshake.kt @@ -92,7 +92,7 @@ abstract class PeerGroupHandshake(private var groupInfo: WifiP2pInfo) { val kiwixHandShakeMessage = objectInputStream.readObject() // Verify that the peer trying to communicate is a kiwix app intending to transfer files - return@readHandshakeAndExchangeMetaData if (isKiwixHandshake( + if (isKiwixHandshake( kiwixHandShakeMessage ) ) { @@ -110,6 +110,7 @@ abstract class PeerGroupHandshake(private var groupInfo: WifiP2pInfo) { ex.printStackTrace() return null } + return null } companion object {