From cdcd8c600b1f3afeee612a61a8ecd076c54f8b53 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 11 Sep 2024 02:53:17 +0700 Subject: [PATCH] Remove redundant is_finite() check --- rslib/src/deckconfig/update.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rslib/src/deckconfig/update.rs b/rslib/src/deckconfig/update.rs index 267b516ea..fe7121425 100644 --- a/rslib/src/deckconfig/update.rs +++ b/rslib/src/deckconfig/update.rs @@ -159,11 +159,6 @@ impl Collection { // add/update provided configs for conf in &mut req.configs { - // we can remove this once https://github.com/open-spaced-repetition/fsrs-rs/pull/217/files - // makes it into an FSRS release - if conf.inner.fsrs_weights.iter().any(|&w| !w.is_finite()) { - return Err(AnkiError::FsrsWeightsInvalid); - } // check the provided parameters are valid before we save them FSRS::new(Some(&conf.inner.fsrs_weights))?; self.add_or_update_deck_config(conf)?;