mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-05 00:59:19 +02:00
Fix warning ST1016: methods on the same type should have the same receiver name
This commit is contained in:
@ -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").
|
||||||
|
@ -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(
|
||||||
|
Reference in New Issue
Block a user