Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
omerzi committed Apr 9, 2024
1 parent 72c8655 commit 3a6db8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http/filestream/filestream.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func WriteFilesToStream(multipartWriter *multipart.Writer, filesList []*FileInfo
defer ioutils.Close(multipartWriter, &err)
for _, file := range filesList {
if err = writeFile(multipartWriter, file); err != nil {
return writeErrPart(multipartWriter, file, err)
return writeErr(multipartWriter, file, err)
}
}

Expand All @@ -89,7 +89,7 @@ func writeFile(multipartWriter *multipart.Writer, file *FileInfo) (err error) {
return err
}

func writeErrPart(multipartWriter *multipart.Writer, file *FileInfo, writeFileErr error) error {
func writeErr(multipartWriter *multipart.Writer, file *FileInfo, writeFileErr error) error {
fileWriter, err := multipartWriter.CreateFormField(ErrorType)
if err != nil {
return fmt.Errorf("failed to create form field: %w", err)
Expand Down

0 comments on commit 3a6db8c

Please sign in to comment.