Skip to content

Commit

Permalink
Merge pull request dependabot#3583 from jeffwidman/patch-1
Browse files Browse the repository at this point in the history
Check the err returned by AddRequire
  • Loading branch information
thepwagner authored Apr 29, 2021
2 parents 3fce13b + a7c24ec commit 22c6916
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go_modules/helpers/updater/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ func UpdateDependencyFile(args *Args) (interface{}, error) {
}

for _, dep := range args.Dependencies {
f.AddRequire(dep.Name, dep.Version)
if err := f.AddRequire(dep.Name, dep.Version); err != nil {
return nil, err
}
}

for _, r := range f.Require {
Expand Down

0 comments on commit 22c6916

Please sign in to comment.