Skip to content

Commit

Permalink
🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
noyshabtay committed Apr 24, 2024
1 parent 226864b commit 5698550
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion http/filestream/filestream.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ func WriteFilesToStreamWithProgressBar(multipartWriter *multipart.Writer, filesL
return errors.Join(err, writeErr(multipartWriter, file, err))
}
if bar != nil {
bar.Add(1)
err = bar.Add(1)
if err != nil {
return fmt.Errorf("failed to update progress bar: %w", err)
}
}
}

Expand Down

0 comments on commit 5698550

Please sign in to comment.