mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
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.
This commit is contained in:
parent
9124d8dbaa
commit
fdff2dec79
38 changed files with 3 additions and 84 deletions
|
@ -176,7 +176,6 @@ func TestGetReflogCommits(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, scenario := range scenarios {
|
||||
scenario := scenario
|
||||
t.Run(scenario.testName, func(t *testing.T) {
|
||||
builder := &ReflogCommitLoader{
|
||||
Common: utils.NewDummyCommon(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue