Skip to content

Commit

Permalink
chore: rename rData
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Mar 23, 2023
1 parent 2e962fd commit 7b748cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions share/ipld/namespace_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type NamespaceData struct {
}

func NewNamespaceData(maxShares int, nID namespace.ID, options ...Option) *NamespaceData {
rData := &NamespaceData{
data := &NamespaceData{
// we don't know where in the tree the leaves in the namespace are,
// so we keep track of the bounds to return the correct slice
// maxShares acts as a sentinel to know if we find any leaves
Expand All @@ -52,9 +52,9 @@ func NewNamespaceData(maxShares int, nID namespace.ID, options ...Option) *Names
}

for _, opt := range options {
opt(rData)
opt(data)
}
return rData
return data
}

func (n *NamespaceData) validate() error {
Expand Down

0 comments on commit 7b748cb

Please sign in to comment.