Commit 0a8ebde0 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Remove redundant version check

parent 149fb862
...@@ -37,7 +37,7 @@ class ServerPresenter @Inject constructor(private val view: ServerView, ...@@ -37,7 +37,7 @@ class ServerPresenter @Inject constructor(private val view: ServerView,
} }
} }
fun connectToServer(server: String, block: () -> Unit) { private fun connectToServer(server: String, block: () -> Unit) {
if (!server.isValidUrl()) { if (!server.isValidUrl()) {
view.showInvalidServerUrlMessage() view.showInvalidServerUrlMessage()
} else { } else {
...@@ -51,7 +51,6 @@ class ServerPresenter @Inject constructor(private val view: ServerView, ...@@ -51,7 +51,6 @@ class ServerPresenter @Inject constructor(private val view: ServerView,
view.showLoading() view.showLoading()
try { try {
checkServerInfo(server)
refreshSettingsInteractor.refresh(server) refreshSettingsInteractor.refresh(server)
serverInteractor.save(server) serverInteractor.save(server)
block() block()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment