Skip to content

Commit

Permalink
Update fakestorage/upload.go
Browse files Browse the repository at this point in the history
Co-authored-by: fsouza <[email protected]>
  • Loading branch information
rawler and fsouza authored Oct 31, 2022
1 parent ab05220 commit 4519b45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fakestorage/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ func (s *Server) insertFormObject(r *http.Request) xmlResponse {
return xmlResponse{status: http.StatusNoContent}
}

func (s *Server) wrapUploadPreconditions(r *http.Request, bucketName string, objectName string) (*generationCondition, error) {
result := &generationCondition{
func (s *Server) wrapUploadPreconditions(r *http.Request, bucketName string, objectName string) (generationCondition, error) {
result := generationCondition{
ifGenerationMatch: nil,
ifGenerationNotMatch: nil,
}
Expand Down

0 comments on commit 4519b45

Please sign in to comment.