mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-22 03:40:55 +00:00
internal/impl: rename legacyProtoMethods as aberrantProtoMethods
This variable is only used by the aberrantMessage type, rename it to properly reflect what it is used for. Change-Id: I081e8954eb1b282f01f6d2d764bffaf31c6677e9 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/245077 Reviewed-by: Damien Neil <dneil@google.com>
This commit is contained in:
parent
a0f95d5b14
commit
4194195e12
@ -380,7 +380,7 @@ type legacyMerger interface {
|
||||
Merge(protoiface.MessageV1)
|
||||
}
|
||||
|
||||
var legacyProtoMethods = &piface.Methods{
|
||||
var aberrantProtoMethods = &piface.Methods{
|
||||
Marshal: legacyMarshal,
|
||||
Unmarshal: legacyUnmarshal,
|
||||
Merge: legacyMerge,
|
||||
@ -505,7 +505,7 @@ func (m aberrantMessage) IsValid() bool {
|
||||
return true
|
||||
}
|
||||
func (m aberrantMessage) ProtoMethods() *piface.Methods {
|
||||
return legacyProtoMethods
|
||||
return aberrantProtoMethods
|
||||
}
|
||||
func (m aberrantMessage) protoUnwrap() interface{} {
|
||||
return m.v.Interface()
|
||||
|
Loading…
x
Reference in New Issue
Block a user