From 6e9a5dcd5937496e4fb5ef6ebcc2b9875be4c68b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 3 Oct 2023 12:42:48 +0300 Subject: refactor(tvix/nar-bridge): rename item to stackItem Change-Id: I76c8db3b04d9f97e51e91f7d36a4dd8c6500d1a2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9526 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: Connor Brewster --- tvix/nar-bridge/pkg/reader/reader.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tvix/nar-bridge/pkg') diff --git a/tvix/nar-bridge/pkg/reader/reader.go b/tvix/nar-bridge/pkg/reader/reader.go index 764766b621fb..08fdd39a7f06 100644 --- a/tvix/nar-bridge/pkg/reader/reader.go +++ b/tvix/nar-bridge/pkg/reader/reader.go @@ -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, }) -- cgit 1.4.1