Add missing return

This commit is contained in:
Mygod
2020-06-26 01:14:02 +08:00
parent db30f1e4fb
commit 288fed2391

View File

@@ -35,9 +35,9 @@ object DhcpWorkaround : SharedPreferences.OnSharedPreferenceChangeListener {
it.exec("ip rule $action iif lo uidrange 0-0 lookup local_network priority 11000")
} catch (e: RoutingCommands.UnexpectedOutputException) {
if (e.result.out.isEmpty() && (e.result.exit == 2 || e.result.exit == 254) && if (enabled) {
e.result.err == "RTNETLINK answers: File exists"
e.result.err == "RTNETLINK answers: File exists\n"
} else {
e.result.err == "RTNETLINK answers: No such file or directory"
e.result.err == "RTNETLINK answers: No such file or directory\n"
}) return@use
Timber.w(IOException("Failed to tweak dhcp workaround rule", e))
SmartSnackbar.make(e).show()