1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

Fix unit tests

This commit is contained in:
Jesse Duffield
2023-07-17 19:55:29 +10:00
parent b5ff55e538
commit fb4453c18a
3 changed files with 9 additions and 8 deletions

View File

@@ -64,7 +64,7 @@ func (self *WorktreeHelper) GetLinkedWorktreeName() string {
func (self *WorktreeHelper) IsCurrentWorktree(w *models.Worktree) bool {
pwd, err := os.Getwd()
if err != nil {
self.c.Log.Errorf("failed to obtain current working directory: %w", err)
self.c.Log.Errorf("failed to obtain current working directory: %v", err)
return false
}
@@ -76,7 +76,7 @@ func (self *WorktreeHelper) IsWorktreePathMissing(w *models.Worktree) bool {
if errors.Is(err, fs.ErrNotExist) {
return true
}
self.c.Log.Errorf("failed to check if worktree path `%s` exists: %w", w.Path, err)
self.c.Log.Errorf("failed to check if worktree path `%s` exists: %v", w.Path, err)
return false
}
return false