We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current null checks in Network.kt can be refactored to more kotlin style.
The following lines of code can be refactored to kotlin style:
return info != null && info.isConnected
return info != null && info.isConnected && info.type == ConnectivityManager.TYPE_WIFI
return info != null && info.isConnected && info.type == ConnectivityManager.TYPE_MOBILE
return info != null && info.isConnected && Network.isConnectionFast(info.type, info.subtype)
The text was updated successfully, but these errors were encountered:
I would like to work on this issue. Please assign this to me.
Sorry, something went wrong.
refactor openMF#198: convert null checks in Network.kt to kotlin style
35198f4
Merge pull request #201 from Sparsh1212/refactor_null_checks_network
2dd8750
refactor #198: convert null checks in Network.kt to kotlin style
Successfully merging a pull request may close this issue.
Summary
The current null checks in Network.kt can be refactored to more kotlin style.
The following lines of code can be refactored to kotlin style:
return info != null && info.isConnected
return info != null && info.isConnected && info.type == ConnectivityManager.TYPE_WIFI
return info != null && info.isConnected && info.type == ConnectivityManager.TYPE_MOBILE
return info != null && info.isConnected && Network.isConnectionFast(info.type, info.subtype)
The text was updated successfully, but these errors were encountered: