diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index b7142f5697..aa005dae10 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -733,7 +733,7 @@ const Subprocess = struct { } // Unset environment varies set by the snap - if (env.get("SNAP") != null) { + if (env.get("SNAP")) |_| { env.remove("SNAP"); env.remove("DRIRC_CONFIGDIR"); env.remove("__EGL_EXTERNAL_PLATFORM_CONFIG_DIRS");