Skip to content

Commit

Permalink
fix: add gosec lint ignore on line we fixed earlier
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <christian@aperture.us>
  • Loading branch information
paralin committed Aug 21, 2024
1 parent 7945736 commit be8fe20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srpc/packet-rw.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *PacketReadWriter) WritePacket(p *Packet) error {
}

data := make([]byte, 4+msgSize)
binary.LittleEndian.PutUint32(data, uint32(msgSize))
binary.LittleEndian.PutUint32(data, uint32(msgSize)) //nolint:gosec

_, err := p.MarshalToSizedBufferVT(data[4:])
if err != nil {
Expand Down

0 comments on commit be8fe20

Please sign in to comment.