about summary refs log tree commit diff
path: root/tvix/eval/src/value
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/value')
-rw-r--r--tvix/eval/src/value/string.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/tvix/eval/src/value/string.rs b/tvix/eval/src/value/string.rs
index d0c7a254fb82..e3e92865f672 100644
--- a/tvix/eval/src/value/string.rs
+++ b/tvix/eval/src/value/string.rs
@@ -654,10 +654,7 @@ impl NixString {
     {
         Self::new(
             Self::from(new_contents).as_ref(),
-            other
-                .context()
-                .filter(|ctx| !ctx.is_empty())
-                .map(|c| Box::new(c.clone())),
+            other.context().map(|c| Box::new(c.clone())),
         )
     }