From 6079b1d963f34ada5c4b25363f2319901e283936 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 8 Jun 2024 00:01:44 +0200 Subject: feat: Add error handling --- pkg/git/git.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'pkg/git') diff --git a/pkg/git/git.go b/pkg/git/git.go index 6a7b91f..ad5d3bc 100644 --- a/pkg/git/git.go +++ b/pkg/git/git.go @@ -99,9 +99,6 @@ func (g *GitRepository) Commits() ([]*object.Commit, error) { } commits = append(commits, c) } - if err != nil { - return nil, err - } return commits, nil } -- cgit v1.2.3