From ed8a6f2d81e1e091644d53083550cd056e57cc3d Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 10 Jun 2025 22:16:25 -0300 Subject: [PATCH] fix line --- utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.go b/utils.go index 8d6ac7f..a972c41 100644 --- a/utils.go +++ b/utils.go @@ -43,7 +43,7 @@ type GitIgnore struct { // NewGitIgnore creates a new GitIgnore parser by reading .gitignore file func NewGitIgnore() (*GitIgnore, error) { gi := &GitIgnore{} - + file, err := os.Open(".gitignore") if err != nil { if os.IsNotExist(err) { @@ -104,7 +104,7 @@ func (gi *GitIgnore) matchPattern(pattern, path string) bool { // Check if pattern matches any suffix of the path pathParts := strings.Split(path, string(filepath.Separator)) patternParts := strings.Split(pattern, "/") - + if len(patternParts) <= len(pathParts) { for i := 0; i <= len(pathParts)-len(patternParts); i++ { match := true