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

pull/3931/head
Ken VanDine 2025-01-25 07:44:32 -05:00 committed by Mitchell Hashimoto
parent e4cf81c2ba
commit ff5c1001c6
1 changed files with 1 additions and 1 deletions

View File

@ -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");