Jelajahi Sumber

fix writing error

emptyList() --> listOf("")
Seedking 1 tahun lalu
induk
melakukan
be83f3a61d
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      src/main/kotlin/io/xmake/utils/Command.kt

+ 1 - 2
src/main/kotlin/io/xmake/utils/Command.kt

@@ -20,7 +20,7 @@ import java.util.concurrent.Future
  */
 fun ioRunv(argv: List<String>, workDir: String? = null): List<String> {
     val call = Callable {
-        val ret: List<String> = emptyList()
+        val ret: List<String> = listOf("")
         try {
             val commandLine: GeneralCommandLine = GeneralCommandLine(argv)
                 .withWorkDirectory(workDir)
@@ -31,7 +31,6 @@ fun ioRunv(argv: List<String>, workDir: String? = null): List<String> {
             val output = ExecUtil.execAndGetOutput(commandLine)
             output.stdout.split(kLineSeparator)
         } catch (e: Exception) {
-            e.printStackTrace()
             ret
         }
     }