1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-03 00:57:52 +02:00

Instantiate other mutexes by value

Like in the previous commit, this is preferred because the fields don't need to
be initialized this way.
This commit is contained in:
Stefan Haller
2025-06-09 16:16:20 +02:00
parent 5ee5d42511
commit fd270768e8
6 changed files with 9 additions and 15 deletions

View File

@ -21,7 +21,7 @@ type MainBranches struct {
previousMainBranches []string
cmd oscommands.ICmdObjBuilder
mutex *deadlock.Mutex
mutex deadlock.Mutex
}
func NewMainBranches(
@ -32,7 +32,6 @@ func NewMainBranches(
c: cmn,
existingMainBranches: nil,
cmd: cmd,
mutex: &deadlock.Mutex{},
}
}