Skip to content

Commit 0602619

Browse files
authored
fix invalid type after exposing BucketOption (nedpals#32)
Co-authored-by: FM <fm@secion.de>
1 parent 97d3246 commit 0602619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (s *Storage) EmptyBucket(ctx context.Context, id string) (*bucketMessage, e
137137
// @param: id: the id of the bucket
138138
// @param: option: the options to be updated
139139
// @returns bucketMessage: a successful response message or failed
140-
func (s *Storage) UpdateBucket(ctx context.Context, id string, option bucketOption) (*bucketMessage, error) {
140+
func (s *Storage) UpdateBucket(ctx context.Context, id string, option BucketOption) (*bucketMessage, error) {
141141
reqBody, _ := json.Marshal(option)
142142
reqURL := fmt.Sprintf("%s/%s/bucket/%s", s.client.BaseURL, StorageEndpoint, id)
143143
req, err := http.NewRequestWithContext(ctx, http.MethodPut, reqURL, bytes.NewBuffer(reqBody))

0 commit comments

Comments
 (0)