Skip to content

Commit

Permalink
Per PR review feedback, this is the more "ziggy" way of doing the che…
Browse files Browse the repository at this point in the history
…ck for environment variable.
  • Loading branch information
kenvandine committed Jan 25, 2025
1 parent 8be4c6d commit 4da51fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/termio/Exec.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4da51fa

Please sign in to comment.