From ff5c1001c64aaa4bc8eb9c6023d85aa9b921d04d Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Sat, 25 Jan 2025 07:44:32 -0500 Subject: [PATCH] Per PR review feedback, this is the more "ziggy" way of doing the check for environment variable. --- src/termio/Exec.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index 07f1d6226..39e5569ea 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -734,7 +734,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");