1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-03 00:57:52 +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 LinesDeleted int
} }
func (fileLoader *FileLoader) getFileDiffs() (map[string]FileDiff, error) { func (self *FileLoader) getFileDiffs() (map[string]FileDiff, error) {
diffs, err := fileLoader.gitDiffNumStat() diffs, err := self.gitDiffNumStat()
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -157,8 +157,8 @@ type FileStatus struct {
PreviousPath string PreviousPath string
} }
func (fileLoader *FileLoader) gitDiffNumStat() (string, error) { func (self *FileLoader) gitDiffNumStat() (string, error) {
return fileLoader.cmd.New( return self.cmd.New(
NewGitCmd("diff"). NewGitCmd("diff").
Arg("--numstat"). Arg("--numstat").
Arg("-z"). Arg("-z").

View File

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