🐛 (catalogd) Don't write to header after checking for Preconditions by anik120 · Pull Request #1710 · operator-framework/operator-controller

@anik120

`checkPreconditions` already writes http.StatusNotModified to the writer.
It also writes http.StatusPreconditionFailed in certain cases. Writing again
could overwrite the status written by `checkPreconditions`. This PR fixes the
issue.

Refers [the source](https://cs.opensource.google/go/go/+/master:src/net/http/fs.go;l=271-274) for correct usage.

Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>

camilamacedo86

Merged via the queue into operator-framework:main with commit dcf50b8

Feb 5, 2025

21 checks passed