From f12ac7db3420406bebd40462aaaaf9b3beeb5375 Mon Sep 17 00:00:00 2001 From: "D. Bohdan" Date: Sat, 23 Nov 2024 13:26:19 +0000 Subject: [PATCH] feat(cli): remove redundant `--dump` error message --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index df9d6d9..5d259fd 100644 --- a/main.go +++ b/main.go @@ -580,7 +580,7 @@ func average[T int64](values []T) T { func dumpHistory(path string, timestamps []int64, values []int64) error { file, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) if err != nil { - return fmt.Errorf("failed to open history dump file: %w", err) + return err } defer file.Close()