Skip to content

Commit

Permalink
chore: rename idx iter var
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 5, 2024
1 parent 4e5297e commit 0d66931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/services/ingestion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 0d66931

Please sign in to comment.