From 09213141411e42767fe61b18710d1b064127033c Mon Sep 17 00:00:00 2001 From: ishiko Date: Sat, 26 Oct 2024 12:19:17 +0800 Subject: [PATCH] remove unnecessary parentheses Co-authored-by: Jarrett Ye --- src/fsrs/algorithm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fsrs/algorithm.ts b/src/fsrs/algorithm.ts index 4915e37..3a24f1a 100644 --- a/src/fsrs/algorithm.ts +++ b/src/fsrs/algorithm.ts @@ -162,7 +162,7 @@ export class FSRSAlgorithm { * @see https://github.com/open-spaced-repetition/fsrs4anki/issues/697 */ linear_damping(delta_d: number, old_d: number): number { - return +((delta_d * (10 - old_d)) / 9).toFixed(8) + return +(delta_d * (10 - old_d) / 9).toFixed(8) } /**