refactor(tvix/nar-bridge): rename item to stackItem

Change-Id: I76c8db3b04d9f97e51e91f7d36a4dd8c6500d1a2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9526
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
This commit is contained in:
Florian Klink 2023-10-03 12:42:48 +03:00 committed by clbot
parent 174485038c
commit 6e9a5dcd59

View file

@ -20,7 +20,7 @@ type Reader struct {
}
// An item on the directories stack
type item struct {
type stackItem struct {
path string
directory *castorev1pb.Directory
}
@ -60,7 +60,7 @@ func (r *Reader) Import(
var rootFile *castorev1pb.FileNode
var stackDirectory *castorev1pb.Directory
var stack = []item{}
var stack = []stackItem{}
// popFromStack is used when we transition to a different directory or
// drain the stack when we reach the end of the NAR.
@ -253,7 +253,7 @@ func (r *Reader) Import(
Files: []*castorev1pb.FileNode{},
Symlinks: []*castorev1pb.SymlinkNode{},
}
stack = append(stack, item{
stack = append(stack, stackItem{
directory: directory,
path: hdr.Path,
})