Skip to content

Commit

Permalink
Repo: handle errors from Repo.FindSimilar()
Browse files Browse the repository at this point in the history
It does not really matter because all errors are eaten by the handler,
but still a good thing to do for uniformity.
  • Loading branch information
intelfx authored and cassava committed Mar 11, 2024
1 parent 2ca309c commit 534eb15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repo/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ func (r *Repo) add(h errs.Handler, pkgfiles []string, ar func(string, string) er
}

pkgs, err := r.FindSimilar(h, added...)
if err != nil {
return err
}
return r.Dispatch(h, pu.Map(pkgs, pu.PkgFilename)...)
}

Expand Down

0 comments on commit 534eb15

Please sign in to comment.