Skip to content

Commit

Permalink
Address detekt issue with too many return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
zwarm committed Jun 14, 2024
1 parent 6b131e0 commit b65e2a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b65e2a1

Please sign in to comment.