mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-11 06:40:37 +00:00
06eea5e15f
This simplifies the code and fixes the following linter warning reported by staticcheck: internal/impl/legacy_export.go:84:51: uint16(blockSize) ^ 0x0000 always equals uint16(blockSize) (SA4016) Similar code: https://cs.opensource.google/go/go/+/master:src/compress/flate/huffman_bit_writer.go;l=413-414;drc=19309779ac5e2f5a2fd3cbb34421dafb2855ac21 Change-Id: Id099b0de635f668d44f57bacd89b564337560254 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/406841 Reviewed-by: Cassondra Foesch <cfoesch@gmail.com> Reviewed-by: Lasse Folger <lassefolger@google.com> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Joseph Tsai <joetsai@digital-static.net>