Files
tailscale/k8s-operator
David Bond 2bebbebc9b k8s-operator/sessionrecording/spdy: remove dead error check in test helper (#22728)
The err check after writeHeaderValueBlock in payload could never fire.
It tested the error from zlib.NewWriterLevelDict, which payload already
checks, and writeHeaderValueBlock calls t.Fatalf itself on a write
error. The nilness analyser in go vet flags it as an impossible
condition.

Remove the len(headerM) guard too, because payload returns early when
headerM is empty, and check the error from w.Flush, which was ignored.

Updates #22652

Change-Id: I23ec131d88a599b37364706dd2226f1456574461

Signed-off-by: David Bond <[email protected]>
2026-11-30 13:26:38 +00:00
..