Simplify PATH key comparison
This commit is contained in:
parent
6212904dd8
commit
8e0faf79c0
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ impl<K: EnvKey> CommandEnv<K> {
|
||||||
self.saw_path || self.clear
|
self.saw_path || self.clear
|
||||||
}
|
}
|
||||||
fn maybe_saw_path(&mut self, key: &OsStr) {
|
fn maybe_saw_path(&mut self, key: &OsStr) {
|
||||||
if !self.saw_path && key.to_os_string() == OsString::from("PATH") {
|
if !self.saw_path && key == "PATH" {
|
||||||
self.saw_path = true;
|
self.saw_path = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue