From 19044b0f53b1c74a8b748018cc91c80ec301b28a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 13 Apr 2023 16:06:54 +0200 Subject: [PATCH] ui: LogViewerActivity: cleanup ret val Signed-off-by: Jason A. Donenfeld --- .../java/com/wireguard/android/activity/LogViewerActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt b/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt index 36925bea..9deed440 100644 --- a/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt +++ b/ui/src/main/java/com/wireguard/android/activity/LogViewerActivity.kt @@ -157,8 +157,7 @@ class LogViewerActivity : AppCompatActivity() { builder.append(rawLogLines[i]) builder.append('\n') } - val ret = builder.toString().toByteArray(Charsets.UTF_8) - return ret + return builder.toString().toByteArray(Charsets.UTF_8) } private suspend fun saveLog() {