From 0d6693137873164b6634a6358999cc2d138aea9c Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Tue, 5 Nov 2024 16:08:32 -0500 Subject: [PATCH] chore: rename idx iter var --- src/api/services/ingestion.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/services/ingestion.go b/src/api/services/ingestion.go index 14ecf18..90577e7 100644 --- a/src/api/services/ingestion.go +++ b/src/api/services/ingestion.go @@ -415,12 +415,12 @@ func (i *IngestionService) ProcessVcf( // Split the string by tabs headers = strings.Split(line, "\t") - for id, header := range headers { + for idx, header := range headers { // determine if header is a default VCF header. // if it is not, assume it's a sampleId and keep // track of it with an id if !utils.StringInSlice(strings.ToLower(strings.TrimSpace(strings.ReplaceAll(header, "#", ""))), constants.VcfHeaders) { - headerSampleIds[len(constants.VcfHeaders)-id] = header + headerSampleIds[len(constants.VcfHeaders)-idx] = header } }