Change null check to let

This commit is contained in:
Abdul Wadood 2019-11-25 19:13:58 +05:30
parent 8cb2c3a605
commit 46f986ebc9

View File

@ -159,9 +159,9 @@ class ZimHostActivity : BaseActivity(), ZimHostCallbacks, ZimHostContract.View {
}
private fun unbindService() {
if (hotspotService != null) {
hotspotService?.let {
unbindService(serviceConnection)
hotspotService!!.registerCallBack(null)
it.registerCallBack(null)
}
}