diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/crashreports/CrashReportCache.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/crashreports/CrashReportCache.kt index cdf050b32..64d4c2795 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/crashreports/CrashReportCache.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/crashreports/CrashReportCache.kt @@ -41,7 +41,7 @@ class CrashReportCache( null } - suspend fun writeReport(report: String) { + fun writeReport(report: String) { val trace = outputStream() trace.write(report.toByteArray()) trace.close() diff --git a/quartz/src/androidMain/kotlin/com/vitorpamplona/quartz/nip03Timestamp/ots/op/OpCrypto.kt b/quartz/src/androidMain/kotlin/com/vitorpamplona/quartz/nip03Timestamp/ots/op/OpCrypto.kt index 888a6e8d7..e44a3053e 100644 --- a/quartz/src/androidMain/kotlin/com/vitorpamplona/quartz/nip03Timestamp/ots/op/OpCrypto.kt +++ b/quartz/src/androidMain/kotlin/com/vitorpamplona/quartz/nip03Timestamp/ots/op/OpCrypto.kt @@ -62,7 +62,7 @@ abstract class OpCrypto internal constructor() : OpUnary() { val digest = MessageDigest.getInstance(this.hashLibName()) var chunk = ctx.read(1048576) - while (chunk != null && chunk.size > 0) { + while (chunk.isNotEmpty()) { digest.update(chunk) chunk = ctx.read(1048576) }