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

Cleanup: remove pointless condition and error message

The file .git/info/exclude can't possibly show up in the files panel.
This commit is contained in:
Stefan Haller
2024-03-25 14:45:28 +01:00
parent 04fcb78c0c
commit c995e7ef2e
5 changed files with 0 additions and 9 deletions

View File

@ -617,10 +617,6 @@ func (self *FilesController) ignore(node *filetree.FileNode) error {
}
func (self *FilesController) exclude(node *filetree.FileNode) error {
if node.GetPath() == ".git/info/exclude" {
return self.c.ErrorMsg(self.c.Tr.Actions.ExcludeFileErr)
}
if node.GetPath() == ".gitignore" {
return self.c.ErrorMsg(self.c.Tr.Actions.ExcludeGitIgnoreErr)
}