Skip to content

Commit 420ae09

Browse files
committed
rename
1 parent 6c17e90 commit 420ae09

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/demoinfocs/sendtables2/class.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
)
99

1010
type fpNameTreeCache struct {
11-
next map[int]*fpNameTreeCache
12-
cachedValue string
11+
next map[int]*fpNameTreeCache
12+
name string
1313
}
1414

1515
type class struct {
@@ -94,11 +94,11 @@ func (c *class) getNameForFieldPath(fp *fieldPath) string {
9494
currentCacheNode = next
9595
}
9696

97-
if currentCacheNode.cachedValue == "" {
98-
currentCacheNode.cachedValue = strings.Join(c.serializer.getNameForFieldPath(fp, 0), ".")
97+
if currentCacheNode.name == "" {
98+
currentCacheNode.name = strings.Join(c.serializer.getNameForFieldPath(fp, 0), ".")
9999
}
100100

101-
return currentCacheNode.cachedValue
101+
return currentCacheNode.name
102102
}
103103

104104
func (c *class) getTypeForFieldPath(fp *fieldPath) *fieldType {

0 commit comments

Comments
 (0)