mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-23 04:50:01 +00:00
Go: make generated code more compliant to "go fmt" (#7907)
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -10,7 +10,9 @@ type InParentNamespaceT struct {
|
||||
}
|
||||
|
||||
func (t *InParentNamespaceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
|
||||
if t == nil { return 0 }
|
||||
if t == nil {
|
||||
return 0
|
||||
}
|
||||
InParentNamespaceStart(builder)
|
||||
return InParentNamespaceEnd(builder)
|
||||
}
|
||||
@@ -19,7 +21,9 @@ func (rcv *InParentNamespace) UnPackTo(t *InParentNamespaceT) {
|
||||
}
|
||||
|
||||
func (rcv *InParentNamespace) UnPack() *InParentNamespaceT {
|
||||
if rcv == nil { return nil }
|
||||
if rcv == nil {
|
||||
return nil
|
||||
}
|
||||
t := &InParentNamespaceT{}
|
||||
rcv.UnPackTo(t)
|
||||
return t
|
||||
|
||||
Reference in New Issue
Block a user