refactor: simplify error handling for tracked files count

This commit is contained in:
Paul Gauthier 2024-08-30 07:47:50 -07:00 committed by Paul Gauthier (aider)
parent 303a314c5e
commit 2999c64435
2 changed files with 4 additions and 11 deletions

View file

@ -246,10 +246,10 @@ class GitRepo:
return diffs
def get_tracked_files(self):
try:
if not self.repo:
return []
if not self.repo:
return []
try:
try:
commit = self.repo.head.commit
except ValueError: