mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Remove useless nullability
This commit is contained in:
@@ -46,8 +46,8 @@ class WidgetBehavior @Inject constructor(
|
||||
setValue(habit, timestamp, Entry.NO)
|
||||
}
|
||||
|
||||
fun onToggleRepetition(habit: Habit, timestamp: Timestamp?) {
|
||||
val currentValue = habit.originalEntries.get(timestamp!!).value
|
||||
fun onToggleRepetition(habit: Habit, timestamp: Timestamp) {
|
||||
val currentValue = habit.originalEntries.get(timestamp).value
|
||||
val newValue: Int
|
||||
newValue =
|
||||
if (preferences.isSkipEnabled) nextToggleValueWithSkip(
|
||||
|
||||
Reference in New Issue
Block a user