From 590419d3cc0b094ac7689486ce4c5af808b3689c Mon Sep 17 00:00:00 2001 From: Hector Dearman Date: Wed, 31 Jul 2024 15:43:11 +0100 Subject: [PATCH] [reaper] Remove extra newline in reports (#214) --- .../kotlin/com/emergetools/reaper/ReaperReportUploadWorker.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reaper/reaper/src/main/kotlin/com/emergetools/reaper/ReaperReportUploadWorker.kt b/reaper/reaper/src/main/kotlin/com/emergetools/reaper/ReaperReportUploadWorker.kt index 17c358f6..6d894ec3 100644 --- a/reaper/reaper/src/main/kotlin/com/emergetools/reaper/ReaperReportUploadWorker.kt +++ b/reaper/reaper/src/main/kotlin/com/emergetools/reaper/ReaperReportUploadWorker.kt @@ -207,6 +207,6 @@ fun longToBase64(hash: Long): String { for (i in 0..7) { buf[i] = ((hash shr i * 8) and 0xFFL).toByte() } - val hashAsBase64 = Base64.encodeToString(buf, Base64.DEFAULT) - return hashAsBase64 + val hashAsBase64 = Base64.encodeToString(buf, Base64.NO_WRAP) + return hashAsBase64.strip() }