Skip to content

Commit

Permalink
bridgev2/matrix: add missing return in UploadMediaStream
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 2, 2024
1 parent a0d427e commit fd15ca4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridgev2/matrix/intent.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ func (as *ASIntent) UploadMediaStream(
var res *bridgev2.FileStreamResult
res, err = cb(tempFile)
if err != nil {
err = fmt.Errorf("failed to write to temp file: %w", err)
err = fmt.Errorf("write callback failed: %w", err)
return
}
var replFile *os.File
if res.ReplacementFile != "" {
Expand Down

0 comments on commit fd15ca4

Please sign in to comment.