mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-09-16 09:16:26 +02:00
Remove bool return value of GetParentContext()
The comments that I'm deleting here explain why we need the bool; however, in our case that's a theoretical issue. It would only arise if we ever were to pass a nil context to SetParentContext, which we never do.
This commit is contained in:
@@ -35,8 +35,7 @@ const (
|
||||
|
||||
type ParentContexter interface {
|
||||
SetParentContext(Context)
|
||||
// we return a bool here to tell us whether or not the returned value just wraps a nil
|
||||
GetParentContext() (Context, bool)
|
||||
GetParentContext() Context
|
||||
}
|
||||
|
||||
type NeedsRerenderOnWidthChangeLevel int
|
||||
|
Reference in New Issue
Block a user