1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-15 01:34:26 +02:00

Fix warning ST1016: methods on the same type should have the same receiver name

This commit is contained in:
Stefan Haller
2025-06-20 19:55:45 +02:00
parent 8c574f888c
commit b7aecf5f17
2 changed files with 6 additions and 6 deletions

View File

@ -110,8 +110,8 @@ type FileDiff struct {
LinesDeleted int
}
func (fileLoader *FileLoader) getFileDiffs() (map[string]FileDiff, error) {
diffs, err := fileLoader.gitDiffNumStat()
func (self *FileLoader) getFileDiffs() (map[string]FileDiff, error) {
diffs, err := self.gitDiffNumStat()
if err != nil {
return nil, err
}
@ -157,8 +157,8 @@ type FileStatus struct {
PreviousPath string
}
func (fileLoader *FileLoader) gitDiffNumStat() (string, error) {
return fileLoader.cmd.New(
func (self *FileLoader) gitDiffNumStat() (string, error) {
return self.cmd.New(
NewGitCmd("diff").
Arg("--numstat").
Arg("-z").

View File

@ -75,8 +75,8 @@ type LinesToRead struct {
Then func()
}
func (m *ViewBufferManager) GetTaskKey() string {
return m.taskKey
func (self *ViewBufferManager) GetTaskKey() string {
return self.taskKey
}
func NewViewBufferManager(