Skip to content

Commit cec537a

Browse files
Alice Waskokflynn
Alice Wasko
authored andcommitted
fix linting errors
Signed-off-by: Alice Wasko <[email protected]>
1 parent 2cb890e commit cec537a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/ambex/transforms.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ func V3ListenerToRdsListener(lnr *v3listener.Listener) (*v3listener.Listener, []
148148

149149
// Use xxhash64 because it's decently fast and cryptographic security isn't needed.
150150
h := xxhash.New()
151-
h.Write(filterChainMatch)
151+
if _, err := h.Write(filterChainMatch); err != nil {
152+
return nil, nil, fmt.Errorf("xxhash write error: %w", err)
153+
}
152154
matchKey := strconv.FormatUint(h.Sum64(), 16)
153155

154156
rc.Name = fmt.Sprintf("%s-routeconfig-%s-%d", l.Name, matchKey, matchKeyIndex[matchKey])

0 commit comments

Comments
 (0)