Skip to content

Commit 014f8a2

Browse files
committed
Cleanup: use the right context for CommitDescriptionController.Context()
It doesn't seem to be used by anything, it looks like we only need to implement the method so that the IController interface is satisfied. But still, it doesn't hurt to be correct here, and might avoid confusion in the future when somebody does try to use the method.
1 parent 55f2909 commit 014f8a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pkg/gui/controllers/commit_description_controller.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package controllers
22

33
import (
4-
"github.com/jesseduffield/lazygit/pkg/gui/context"
54
"github.com/jesseduffield/lazygit/pkg/gui/types"
65
)
76

@@ -45,11 +44,7 @@ func (self *CommitDescriptionController) GetKeybindings(opts types.KeybindingsOp
4544
}
4645

4746
func (self *CommitDescriptionController) Context() types.Context {
48-
return self.context()
49-
}
50-
51-
func (self *CommitDescriptionController) context() *context.CommitMessageContext {
52-
return self.c.Contexts().CommitMessage
47+
return self.c.Contexts().CommitDescription
5348
}
5449

5550
func (self *CommitDescriptionController) switchToCommitMessage() error {

0 commit comments

Comments
 (0)