update deps (#1868)

* update deps

* align struct
This commit is contained in:
Jo
2022-12-29 18:42:43 +00:00
committed by GitHub
parent 28d90c981e
commit 9be51052f7
15 changed files with 78 additions and 61 deletions

View File

@@ -35,12 +35,12 @@ func handlePackageVote(ctx context.Context,
return nil
}
for _, info := range infos {
for i := range infos {
var err error
if upvote {
err = voteClient.Vote(ctx, info.PackageBase)
err = voteClient.Vote(ctx, infos[i].PackageBase)
} else {
err = voteClient.Unvote(ctx, info.PackageBase)
err = voteClient.Unvote(ctx, infos[i].PackageBase)
}
if err != nil {
@@ -50,7 +50,7 @@ func handlePackageVote(ctx context.Context,
err.Error()))
}
return &ErrAURVote{inner: err, pkgName: info.Name}
return &ErrAURVote{inner: err, pkgName: infos[i].Name}
}
}