Skip to content

Commit

Permalink
Update src/cli/subcommand/export.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc authored Nov 25, 2023
1 parent f072444 commit b5e894b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/subcommand/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl CommandExecute for Export {
}

fn nonempty_var_os(key: &str) -> Option<OsString> {
env::var_os(key).and_then(|val| if val.is_empty() { Some(val) } else { None })
env::var_os(key).and_then(|val| if val.is_empty() { None } else { Some(val) })
}

fn env_path(key: &str) -> Option<Vec<PathBuf>> {
Expand Down

0 comments on commit b5e894b

Please sign in to comment.