Skip to content

Commit 924a79e

Browse files
committed
chore: lint
1 parent 119ab5b commit 924a79e

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

src-elm/View/Timer.elm

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ dialView sessionType currentTime maxTime maxStrokeDasharray theme focusLabel sho
102102

103103
timerView : Model -> Html Msg
104104
timerView ({ config, strokeDasharray, theme, pomodoroState, focusLabel, shortBreakLabel, longBreakLabel } as model) =
105-
let
106-
_ =
107-
Debug.log "Pomodoro state" pomodoroState
108-
in
109105
pomodoroState
110106
|> Maybe.map
111107
(\state ->

src-tauri/src/cli.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ async fn run_pomodoro_checker(config: Config, display_label: bool) -> Result<()>
5555
println!("{progress_bar} {formatted_time}");
5656
}
5757
} else {
58-
if pomodoro.current_session.status == SessionStatus::Running {
59-
println!("-> Pomodoro stopped outside of the app");
60-
pomodoro = pomodoro::reset_round(&pomodoro)?;
61-
}
6258
println!("P -");
6359
}
6460

src-tauri/src/pomodoro.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ pub fn reset_session(pomodoro: &Pomodoro) -> io::Result<Pomodoro> {
383383
Ok(Pomodoro {
384384
current_session: Session {
385385
status: SessionStatus::NotStarted,
386-
current_time: 0,
386+
elapsed_seconds: 0,
387387
label: pomodoro.current_session.label.clone(),
388388
session_file: pomodoro.current_session.session_file.clone(),
389389
session_type: SessionType::Focus,
@@ -594,7 +594,7 @@ pub fn get_session_info_with_default(
594594
if line_content.session_status == SessionStatus::Running {
595595
pomodoro.config.focus_duration - remaining_seconds
596596
} else {
597-
pomodoro.current_session.elapsed_seconds.into()
597+
pomodoro.current_session.elapsed_seconds
598598
}
599599
}
600600
};
@@ -720,7 +720,7 @@ pub fn get_next_pomodoro_from_session_file(
720720
} else {
721721
// Whatever the current status, if there is no session file, we should reset the pomodoro
722722
// to a not started state
723-
reset(previous_pomodoro)
723+
reset_round(previous_pomodoro)
724724
}
725725
}
726726

src-tauri/tests/pomodoro_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ fn get_next_pomodoro_from_session_file_test() {
499499
);
500500

501501
// Stop / reset the pomodoro
502-
let next_pomodoro = pomodoro::reset(&next_pomodoro).unwrap();
502+
let next_pomodoro = pomodoro::reset_round(&next_pomodoro).unwrap();
503503

504504
assert_eq!(next_pomodoro.current_session.session_file, None);
505505

0 commit comments

Comments
 (0)