mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Remove unnecessary UTF-8 decode in is_wsl()
This commit is contained in:
parent
d3abd5d600
commit
8bd5183944
1 changed files with 1 additions and 1 deletions
|
@ -1660,7 +1660,7 @@ pub fn is_windows_subsystem_for_linux() -> bool {
|
||||||
// this check: if the environment variable FISH_NO_WSL_CHECK is present, this test
|
// this check: if the environment variable FISH_NO_WSL_CHECK is present, this test
|
||||||
// is bypassed. We intentionally do not include this in the error message because
|
// is bypassed. We intentionally do not include this in the error message because
|
||||||
// it'll only allow fish to run but not to actually work. Here be dragons!
|
// it'll only allow fish to run but not to actually work. Here be dragons!
|
||||||
if env::var("FISH_NO_WSL_CHECK") == Err(env::VarError::NotPresent) {
|
if env::var_os("FISH_NO_WSL_CHECK").is_none() {
|
||||||
crate::flog::FLOG!(
|
crate::flog::FLOG!(
|
||||||
error,
|
error,
|
||||||
concat!(
|
concat!(
|
||||||
|
|
Loading…
Reference in a new issue