From b2c8cc7baeace036682081491b3d890d4f985d42 Mon Sep 17 00:00:00 2001 From: Laysa de Sousa Bitencourt Date: Mon, 27 May 2024 16:14:01 -0300 Subject: [PATCH] working without errors --- cmd/get_ledger_range_from_times.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/get_ledger_range_from_times.go b/cmd/get_ledger_range_from_times.go index b7458e5d..9f955858 100644 --- a/cmd/get_ledger_range_from_times.go +++ b/cmd/get_ledger_range_from_times.go @@ -78,12 +78,9 @@ var getLedgerRangeFromTimesCmd = &cobra.Command{ if path != "" { outFile := mustOutFile(path) - outFile.Write(marshalled) - outFile.WriteString("\n") - numFailures := 0 totalNumBytes := 0 - numBytes, err := exportEntry(marshalled, outFile, nil) + numBytes, err := exportEntry(toExport, outFile, nil) if err != nil { cmdLogger.LogError(fmt.Errorf("could not export ledger ranges: %v", err)) numFailures += 1