From fe2e0ef4c888a065e9d22c8efef69e92ab5ba0c3 Mon Sep 17 00:00:00 2001 From: Mygod Date: Sat, 9 Mar 2019 00:26:41 -0500 Subject: [PATCH] Remove execOutUnjoined --- mobile/src/main/java/be/mygod/vpnhotspot/util/RootSession.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/util/RootSession.kt b/mobile/src/main/java/be/mygod/vpnhotspot/util/RootSession.kt index c99111e3..382cc85a 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/util/RootSession.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/util/RootSession.kt @@ -103,12 +103,11 @@ class RootSession : AutoCloseable { }).exec() } fun exec(command: String) = checkOutput(command, execQuiet(command)) - fun execOutUnjoined(command: String): List { + fun execOut(command: String): String { val result = execQuiet(command) checkOutput(command, result, false) - return result.out + return result.out.joinToString("\n") } - fun execOut(command: String): String = execOutUnjoined(command).joinToString("\n") /** * This transaction is different from what you may have in mind since you can revert it after committing it.