Static-check fixes from @lespea #1657, batch 1/n (#1703)

This commit is contained in:
John Kerl 2024-10-27 11:42:43 -04:00 committed by GitHub
parent d7a5997d70
commit 047cb4bc28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
167 changed files with 229 additions and 257 deletions

View file

@ -217,8 +217,7 @@ func getRecordBatchExplicitCSVHeader(
} else {
if !reader.readerOptions.AllowRaggedCSVInput && len(reader.headerStrings) != len(fields) {
err := fmt.Errorf(
"mlr: CSV header/data length mismatch %d != %d "+
"at filename %s line %d.\n",
"mlr: CSV header/data length mismatch %d != %d at filename %s line %d",
len(reader.headerStrings), len(fields), filename, reader.inputLineNumber,
)
errorChannel <- err
@ -342,8 +341,7 @@ func getRecordBatchImplicitCSVHeader(
} else {
if !reader.readerOptions.AllowRaggedCSVInput && len(reader.headerStrings) != len(fields) {
err := fmt.Errorf(
"mlr: CSV header/data length mismatch %d != %d "+
"at filename %s line %d.\n",
"mlr: CSV header/data length mismatch %d != %d at filename %s line %d",
len(reader.headerStrings), len(fields), filename, reader.inputLineNumber,
)
errorChannel <- err