diff --git a/whoami/src/os/unix.rs b/whoami/src/os/unix.rs index 4d7d3a6..07115ab 100644 --- a/whoami/src/os/unix.rs +++ b/whoami/src/os/unix.rs @@ -260,10 +260,10 @@ impl Target for Os { "ProductUserVisibleVersion" => { set_user_visible_version = true } - "ProductVersion" => { - if user_visible_version.is_none() { - set_user_visible_version = true - } + "ProductVersion" + if user_visible_version.is_none() => + { + set_user_visible_version = true } _ => {} }