mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-13 05:15:53 +02:00
use generics to DRY up context code
This commit is contained in:
parent
4b56d428ff
commit
d93fef4c61
31 changed files with 117 additions and 364 deletions
|
@ -52,7 +52,7 @@ func NewCommitFilesContext(
|
|||
}
|
||||
|
||||
func (self *CommitFilesContext) GetSelectedItemId() string {
|
||||
item := self.GetSelectedFileNode()
|
||||
item := self.GetSelected()
|
||||
if item == nil {
|
||||
return ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue