1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03: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

@ -15,7 +15,7 @@ type InlineStatusHelper struct {
windowHelper *WindowHelper
contextsWithInlineStatus map[types.ContextKey]*inlineStatusInfo
mutex *deadlock.Mutex
mutex deadlock.Mutex
}
func NewInlineStatusHelper(c *HelperCommon, windowHelper *WindowHelper) *InlineStatusHelper {
@ -23,7 +23,6 @@ func NewInlineStatusHelper(c *HelperCommon, windowHelper *WindowHelper) *InlineS
c: c,
windowHelper: windowHelper,
contextsWithInlineStatus: make(map[types.ContextKey]*inlineStatusInfo),
mutex: &deadlock.Mutex{},
}
}