about summary refs log tree commit diff
path: root/tvix/nar-bridge/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nar-bridge/pkg')
-rw-r--r--tvix/nar-bridge/pkg/writer/writer.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/tvix/nar-bridge/pkg/writer/writer.go b/tvix/nar-bridge/pkg/writer/writer.go
index 25510f933e3a..e69cf27f2a50 100644
--- a/tvix/nar-bridge/pkg/writer/writer.go
+++ b/tvix/nar-bridge/pkg/writer/writer.go
@@ -54,18 +54,18 @@ func Export(
 		}
 
 		// if it's a regular file, retrieve and write the contents
-		contentReader, err := blobLookupFn(v.File.GetDigest())
+		blobReader, err := blobLookupFn(v.File.GetDigest())
 		if err != nil {
 			return fmt.Errorf("unable to lookup blob: %w", err)
 		}
-		defer contentReader.Close()
+		defer blobReader.Close()
 
-		_, err = io.Copy(narWriter, contentReader)
+		_, err = io.Copy(narWriter, blobReader)
 		if err != nil {
-			return fmt.Errorf("unable to copy contents from contentReader: %w", err)
+			return fmt.Errorf("unable to read from blobReader: %w", err)
 		}
 
-		err = contentReader.Close()
+		err = blobReader.Close()
 		if err != nil {
 			return fmt.Errorf("unable to close content reader: %w", err)
 		}