diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-03 23:47:05 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-03 23:47:05 +0200 |
| commit | ff4102a1881ed8a9ea322bc2d8146c8a7ece9efb (patch) | |
| tree | e0dd5914c20cc268ae6d13e5d8bb085faebc7d45 | |
| parent | 4a621671749db8e13ebbb23953385a9f69317036 (diff) | |
timer: remove unnecessary else in GetStatus
| -rw-r--r-- | internal/timer/operations.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/timer/operations.go b/internal/timer/operations.go index 52e5d3e..3de7f97 100644 --- a/internal/timer/operations.go +++ b/internal/timer/operations.go @@ -57,10 +57,10 @@ func GetStatus() (string, error) { if state.Running { elapsed := (state.ElapsedTime + time.Since(state.StartTime)).Round(time.Second) return fmt.Sprintf("Status: Running\nElapsed Time: %s", elapsed), nil - } else { - elapsed := state.ElapsedTime.Round(time.Second) - return fmt.Sprintf("Status: Stopped\nElapsed Time: %s", elapsed), nil } + + elapsed := state.ElapsedTime.Round(time.Second) + return fmt.Sprintf("Status: Stopped\nElapsed Time: %s", elapsed), nil } func ResetTimer() (string, error) { |
