Skip to content

Commit d8eca6e

Browse files
committed
Wrap in block.
1 parent 20d808f commit d8eca6e

File tree

1 file changed

+8
-6
lines changed
  • crates/system-env/src

1 file changed

+8
-6
lines changed

crates/system-env/src/pm.rs

+8-6
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,14 @@ impl SystemPackageManager {
123123
/// "doas" or "sudo", and on Windows this does nothing.
124124
pub fn get_elevated_command(&self) -> Option<&str> {
125125
#[cfg(unix)]
126-
if is_command_on_path("doas") {
127-
Some("doas")
128-
} else if is_command_on_path("sudo") {
129-
Some("sudo")
130-
} else {
131-
None
126+
{
127+
if is_command_on_path("doas") {
128+
Some("doas")
129+
} else if is_command_on_path("sudo") {
130+
Some("sudo")
131+
} else {
132+
None
133+
}
132134
}
133135

134136
#[cfg(windows)]

0 commit comments

Comments
 (0)