Skip to content

Commit

Permalink
function simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
sosiska committed Mar 5, 2019
1 parent 58f5438 commit 1db540f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion find.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (r *Repo) FindUpdates(h errs.Handler, pkgnames ...string) (pacman.Packages,

// All packages that are newer than the packages in the database,
// packages in the database that don't have files are excluded.
dbpkgs = pu.Filter(dbpkgs, func(p pacman.AnyPackage) bool { return r.Exists(p) }).Pkgs()
dbpkgs = pu.Filter(dbpkgs, r.Exists).Pkgs()
return pu.Filter(pkgs, pu.NewerFltr(dbpkgs)).Pkgs(), nil
}

Expand Down

0 comments on commit 1db540f

Please sign in to comment.