From aec9b32dc80a5ed21fc585236fa10c4d90719632 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sun, 27 Oct 2024 12:11:59 -0400 Subject: [PATCH] Static-check fixes from @lespea #1657, batch 8/n --- pkg/output/record_writer_csv.go | 1 - pkg/output/record_writer_markdown.go | 1 - pkg/transformers/fill_down.go | 1 - pkg/transformers/step.go | 1 - 4 files changed, 4 deletions(-) diff --git a/pkg/output/record_writer_csv.go b/pkg/output/record_writer_csv.go index ffd76f2ec..ca51cd325 100644 --- a/pkg/output/record_writer_csv.go +++ b/pkg/output/record_writer_csv.go @@ -14,7 +14,6 @@ import ( type RecordWriterCSV struct { writerOptions *cli.TWriterOptions - ofs0 byte // Go's CSV library only lets its 'Comma' be a single character csvWriter *csv.Writer needToPrintHeader bool firstRecordKeys []string diff --git a/pkg/output/record_writer_markdown.go b/pkg/output/record_writer_markdown.go index 64bc8bb97..b3b96089a 100644 --- a/pkg/output/record_writer_markdown.go +++ b/pkg/output/record_writer_markdown.go @@ -12,7 +12,6 @@ import ( type RecordWriterMarkdown struct { writerOptions *cli.TWriterOptions - ors string numHeaderLinesOutput int lastJoinedHeader string diff --git a/pkg/transformers/fill_down.go b/pkg/transformers/fill_down.go index 55acbb3c3..cf779e336 100644 --- a/pkg/transformers/fill_down.go +++ b/pkg/transformers/fill_down.go @@ -116,7 +116,6 @@ func transformerFillDownParseCLI( type TransformerFillDown struct { // input fillDownFieldNames []string - doAll bool onlyIfAbsent bool // state diff --git a/pkg/transformers/step.go b/pkg/transformers/step.go index fcf5d0eee..e003aaf3f 100644 --- a/pkg/transformers/step.go +++ b/pkg/transformers/step.go @@ -260,7 +260,6 @@ type TransformerStep struct { // STATE // Scratch space used per-record - valueFieldValues []mlrval.Mlrval // Map from group-by field names to value-field names to stepper name to stepper object. See // the Transform method below for more details. groups map[string]map[string]map[string]tStepper