1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-03 00:57:52 +02:00

Cleanup: implement AllFilesInPatch using lo.Keys

Curiously, the function was never called so far, but we're going to use it later
in this branch.
This commit is contained in:
Stefan Haller
2025-07-01 11:23:16 +02:00
parent eebc39d3e9
commit 00d043d743

View File

@ -286,11 +286,5 @@ func (p *PatchBuilder) NewPatchRequired(from string, to string, reverse bool) bo
} }
func (p *PatchBuilder) AllFilesInPatch() []string { func (p *PatchBuilder) AllFilesInPatch() []string {
files := make([]string, 0, len(p.fileInfoMap)) return lo.Keys(p.fileInfoMap)
for filename := range p.fileInfoMap {
files = append(files, filename)
}
return files
} }