Skip to content

Commit

Permalink
style: remove unnecessary return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
coffebar committed Feb 25, 2024
1 parent aae581e commit d859b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hyprland_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ pub fn hyprctl(argv: Vec<&str>) -> Result<String, CommandFailed> {
.args(argv)
.output()
.expect("failed to execute process");
return match output.status.code() {
match output.status.code() {
Some(code) => {
log::debug!("Status code is {}", code);
Ok(String::from_utf8_lossy(&output.stdout).to_string())
}
None => Err(CommandFailed {}),
};
}
}

// updates layout on all active keyboards
Expand Down

0 comments on commit d859b62

Please sign in to comment.