====================================================================================================
append to slice `indexes` with non-zero initialized length at https://github.com/SpectoLabs/hoverfly/blob/master/core/templating/templating.go#L160:14
====================================================================================================
the indexes := make([]JournalIndex, len(journal.Indexes)) should be indexes := make([]JournalIndex, 0, len(journal.Indexes))
I was running github actions to run linter makezero for top github golang repos.
see issues https://github.com/alingse/go-linter-runner/issues/1
and the github actions output https://github.com/alingse/go-linter-runner/actions/runs/9243209781/job/25427055647
the
indexes := make([]JournalIndex, len(journal.Indexes))
should beindexes := make([]JournalIndex, 0, len(journal.Indexes))