mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-21 09:40:03 +00:00
To avoid accidentally emitting the UnmarshalMethod in the unlikely (but possible) event that a proto4 syntax was added, swich the conditional to only trigger on the proto2 syntax. Change-Id: I0c201eace56e9ecc92cd791e45ca5d3b99e2ba86 Reviewed-on: https://go-review.googlesource.com/c/154317 Reviewed-by: Damien Neil <dneil@google.com>