Skip to content

Commit

Permalink
Update go_modules/helpers/updater/main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
thepwagner authored Apr 29, 2021
1 parent 324e0d6 commit a7c24ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions go_modules/helpers/updater/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ func UpdateDependencyFile(args *Args) (interface{}, error) {
}

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

0 comments on commit a7c24ec

Please sign in to comment.