Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed Nov 9, 2023
1 parent 32adf14 commit e9736a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions private/bufnew/bufmodule/module_set_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ func (b *moduleSetBuilder) AddModuleForBucket(
b.errs = append(b.errs, errBuildAlreadyCalled)
return b
}
if bucketID == "" {
b.errs = append(b.errs, errors.New("BucketID is required when calling AddModuleForBucket"))
return b
}
addModuleForBucketOptions := newAddModuleForBucketOptions()
for _, option := range options {
option(addModuleForBucketOptions)
Expand Down

0 comments on commit e9736a2

Please sign in to comment.