From b65e2a14ca3856e58cb273541df0f223bf187bda Mon Sep 17 00:00:00 2001 From: Annmarie Ziegler Date: Fri, 14 Jun 2024 14:40:40 -0400 Subject: [PATCH] Address detekt issue with too many return statements --- .../wordpress/android/ui/voicetocontent/VoiceToContentScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/voicetocontent/VoiceToContentScreen.kt b/WordPress/src/main/java/org/wordpress/android/ui/voicetocontent/VoiceToContentScreen.kt index b787266cbe25..1d139dd42969 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/voicetocontent/VoiceToContentScreen.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/voicetocontent/VoiceToContentScreen.kt @@ -200,7 +200,7 @@ fun formatTime(remainingTimeInSeconds: Int, maxDurationInSeconds: Int): String { val seconds = remainingTimeInSeconds % 60 val value = if (minutes == 1) default - else return String.format(Locale.getDefault(), "%02d:%02d", minutes, seconds) + else String.format(Locale.getDefault(), "%02d:%02d", minutes, seconds) return value }