Fix formatting

This commit is contained in:
Jonathan Schoreels 2025-04-28 16:26:41 +02:00
parent e95c534fcd
commit e674fd91d1

View file

@ -73,7 +73,11 @@ impl CardStateUpdater {
let last_ivl_with_fuzz = self.learning_ivl_with_fuzz(
get_fuzz_seed_for_id_and_reps(
self.card.id,
if self.card.reps > 0 { self.card.reps - 1 } else { 0 }
if self.card.reps > 0 {
self.card.reps - 1
} else {
0
},
),
last_ivl,
);