summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/commit_loader_test.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2024-05-19 16:02:16 +1000
committerJesse Duffield <jessedduffield@gmail.com>2024-05-19 16:38:21 +1000
commitfdff2dec79c30d45af9d3330907f40ebb75b53d4 (patch)
treea36752dfb1b0e7d572d6c3928cfc4343c9859598 /pkg/commands/git_commands/commit_loader_test.go
parent9124d8dbaa4b343c35819953464e053da82c3763 (diff)
Remove redundant variable dedeclarations
In go 1.22, loop variables are redeclared with each iteration of the loop, rather than simple updated on each iteration. This means that we no longer need to manually redeclare variables when they're closed over by a function.
Diffstat (limited to 'pkg/commands/git_commands/commit_loader_test.go')
-rw-r--r--pkg/commands/git_commands/commit_loader_test.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/commit_loader_test.go b/pkg/commands/git_commands/commit_loader_test.go
index d9aa8456c..fe4f39585 100644
--- a/pkg/commands/git_commands/commit_loader_test.go
+++ b/pkg/commands/git_commands/commit_loader_test.go
@@ -303,7 +303,6 @@ func TestGetCommits(t *testing.T) {
}
for _, scenario := range scenarios {
- scenario := scenario
t.Run(scenario.testName, func(t *testing.T) {
common := utils.NewDummyCommon()
common.AppState = &config.AppState{}