Skip to content

Commit bf2257f

Browse files
committed
feat: remove ineffectual assignment
1 parent b18b5c4 commit bf2257f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/httpapi/server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,10 @@ func (s *Server) uploadFiles(ctx context.Context, input *struct {
450450
}
451451

452452
_, err = io.Copy(outFile, rc)
453+
if err != nil {
454+
return nil, xerrors.Errorf("failed to upload files: %w", err)
455+
}
456+
453457
err = rc.Close()
454458
if err != nil {
455459
return nil, xerrors.Errorf("failed to upload files: %w", err)

0 commit comments

Comments
 (0)