mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Fix warning ST1016: methods on the same type should have the same receiver name
This commit is contained in:
parent
8c574f888c
commit
b7aecf5f17
|
|
@ -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").
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue