Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
ishua committed May 12, 2024
1 parent 260ef90 commit d06439c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fsnotes/internal/clients/mygit/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ func (r *Repo) Pull(ctx context.Context) error {
Password: r.Token,
},
RemoteName: "origin"})
if err.Error() == "already up-to-date" {
err = nil
if err != nil {
if err.Error() == "already up-to-date" {
err = nil
}
}

return err
}

Expand Down

0 comments on commit d06439c

Please sign in to comment.