Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyaren committed Mar 6, 2021
1 parent 987f05e commit 5195c6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/arcdps-log-uploader/dpsreports.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ func uploadFile(path string) (*DpsReportResponse, error) {
body := &bytes.Buffer{}
writer := multipart.NewWriter(body)
part, err := writer.CreateFormFile("file", filepath.Base(file.Name()))
if err != nil {
return nil, err
}
_, err = io.Copy(part, file)
if err != nil {
return nil, err
Expand Down

0 comments on commit 5195c6e

Please sign in to comment.