Permalink
Browse files

convert method to expression body

  • Loading branch information...
fourlastor committed Dec 21, 2018
1 parent 0ff3393 commit 6cfcce91eb99a07d7b0fecf1b06388d4e7047316
Showing with 1 addition and 3 deletions.
  1. +1 −3 app/src/debug/java/net/squanchy/support/system/FreezableCurrentTime.kt
@@ -24,9 +24,7 @@ class FreezableCurrentTime(context: Context) : CurrentTime {
preferences.edit { remove(KEY_FROZEN_TIME) }
}

fun isTimeFrozen(): Boolean {
return preferences.contains(KEY_FROZEN_TIME)
}
fun isTimeFrozen() = preferences.contains(KEY_FROZEN_TIME)

companion object {
private const val KEY_FROZEN_TIME = "FROZEN_TIME"

0 comments on commit 6cfcce9

Please sign in to comment.