Per PR review feedback, this is the more "ziggy" way of doing the check for environment variable.

This commit is contained in:
Ken VanDine
2025-01-25 07:44:32 -05:00
committed by Mitchell Hashimoto
parent f239df59ca
commit a111b3f96f

View File

@ -733,7 +733,7 @@ const Subprocess = struct {
} }
// Unset environment varies set by the snap // Unset environment varies set by the snap
if (env.get("SNAP") != null) { if (env.get("SNAP")) |_| {
env.remove("SNAP"); env.remove("SNAP");
env.remove("DRIRC_CONFIGDIR"); env.remove("DRIRC_CONFIGDIR");
env.remove("__EGL_EXTERNAL_PLATFORM_CONFIG_DIRS"); env.remove("__EGL_EXTERNAL_PLATFORM_CONFIG_DIRS");