From 016d4ae88a7bfead58db21a5933b59260af2c88d Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Fri, 9 Feb 2024 20:33:09 +0100 Subject: [PATCH] remove unused code in LiveProgressReporter --- rendercv/user_communicator.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/rendercv/user_communicator.py b/rendercv/user_communicator.py index f803793..058ee45 100644 --- a/rendercv/user_communicator.py +++ b/rendercv/user_communicator.py @@ -150,8 +150,6 @@ class LiveProgressReporter(rich.live.Live): class TimeElapsedColumn(rich.progress.ProgressColumn): def render(self, task: "rich.progress.Task") -> rich.text.Text: elapsed = task.finished_time if task.finished else task.elapsed - if elapsed is None: - return rich.text.Text("--.-", style="progress.elapsed") delta = f"{elapsed:.1f} s" return rich.text.Text(str(delta), style="progress.elapsed")