From a111b3f96fc7b2151f001b835e50588aeaca107b 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 a728e7a37..8dfeb1aeb 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");