Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit a608dfe666abb0d137ba735d9595b3584e032530 Author: Joseph Crowell <joseph.w.crowell@gmail.com> Date: Wed Dec 17 20:20:31 2025 +0000 Revert variable change to err2 Co-authored-by: Julian <j.r@jugendhacker.de> diff --git a/matterhook/matterhook.go b/matterhook/matterhook.go index 5e61d49..984707b 100644 --- a/matterhook/matterhook.go +++ b/matterhook/matterhook.go @@ -1589 +1589 @@ func (c *Client) Send(msg OMessage) error {   defer resp.Body.Close()     // Read entire body to completion to re-use keep-alive connections. - _, err2 := io.Copy(io.Discard, resp.Body) - if err2 != nil { - return err2 + _, err = io.Copy(io.Discard, resp.Body) + if err != nil { + return err   }     if resp.StatusCode != 200 {